7.5

Table Of Contents
endif
endfor()
ExpandString (function)
Returns a string that contains the data from a Workflow tool variable. Any variable available to the Workflow tool can be used
here.
Syntax
ExpandString(stringtoexpand: string) string
Arguments
stringtoexpand
The Workflow tool variable string to expand. This can be local and global variables, job infos, as well as any other variable
such as %o, %j, %y, etc.
Return Value
Returns the resulting expanded string.
Code Sample Example
define(&result, string, '')
&result := ExpandString('%{global.GlobalVar}')
show(&result)
% Also works with system variables
&result := ExpandString('%o')
show(&result)
Field (function)
Returns the contents of the specified field for the current record. This function is only useful in database emulation mode.
Syntax
field( fieldname[, recordnumber] ) string value
Argument
fieldname
String value specifying the name of the field whose value you want to retrieve.
recordnumber
Integer value specifying the number of the record, in the current record set, whose value you want to retrieve. If you omit this
argument, the document uses the value of &current.line.
This argument is case sensitive. Thus the field names OrderNumber and ORDERNUMBER are not equivalent.
Code Sample Example
This example shows how to print the name and content of the current record in a generic fashion.
©2010 Objectif Lune Inc - 277 -