Structure of function calls
Structure of function calls
Arguments of functions can only be omitted in functions for which this is documented in the help, e.g. the function f$Date. DT functions generally do not have any optional arguments.
Return parameters of functions must always be specified (as parameters).
It is always possible to use a constant, parameter, or formula of the appropriate datatype as a arguments (see Structure of expressions).
Function calls can be nested. It is strongly recommended not to also do this for decision table calls because this can quickly cause unwanted side-effects.
DT-function calls are also used for the creation of loops, e.g. for processing of lists or fields.
Examples:
Process = f$Dialog( ’Machine’+Language )
f$Message( ’Error’,’Wrong mounting length ’+f$FtoS(Length,’%d’)+’mm’ )