Programming guide to Unibase

10 : Creating routines

Define a new routine

<routine name="routine" The name of a new routine.
         [use="description"] Description of the routine.
         [type="returntype"] Type of return value. Without it no value is returned.
         [use="description"] Description of the resulting value.
         {parameter="parname" Parameters to the routine.
         [type="partype"] Type of a parameter. Default is string.
         [use="description"]} Description of the parameter.
         [system] A system routine contains ANSI-C as code.
         [local]> This routine is only defined for the current module.
 ... code ... The code of this routine.
</routine>