Important: $WBSETV function has effect on entire WBSP page and all it's sub elements (configuration section, included files, sub reports, etc.). All instances of $WBSETV function that use the same variable name will set same variable regardless of their location inside WBSP page (e.g. $WBSETV[somevar|0] in main WBSP page and $WBSETV[somevar|$wbp[RC]] in subreport will change the value of the same variable named somevar.
Availability
$WBSETV is available for use with all WBSP commands.
Syntax
$WBSETV{varname|varvalue|showvar}
$WBSETV[varname|varvalue|showvar]
Parameters
varname - the name of global WBSP variable to which the
new value will be assigned
varvalue - the value that will be
assigned
showvar - optional parameter - if set to true (T,ON,1)
WhizBase will show the assigned value
Returns
Assigned value if
showvar parameter is set to true, otherwise it returns nothing, just sets the
value of a variable.
Example
After running this example, the resulting page in browser may look like this: