8.18/6/2018

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)