Important: $WBIV function has effect on entire WBSP page and all it's sub elements (configuration section, included files, sub reports, etc.). All instances of $WBIV function that use the same variable name will set same variable regardless of their location inside WBSP page (e.g. $WBIV[somevar] in main WBSP page and $WBIV[somevar] in subreport will change (increment by 1) the value of the same variable named somevar.
Availability
$WBIV is available for use with all WBSP commands.
Syntax
$WBIV{varname|increment|showvar}
$WBIV[varname|increment|showvar]
Parameters
varname - the name of global WBSP variable to be
incremented
increment - optional parameter - the value that
will be added to the existing value of varname. Default value is
1.
showvar - optional parameter - if set to true (T,ON,1)
WhizBase will show the assigned value
Returns
New (incremented) 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: