Availability
$WBRV is available for use with all WBSP
commands:
Syntax
$WBRV{varname}
$WBRV[varname]
Parameters
varname - the name of requested variable defined in
configuration section. It can be either WhizBase variable or any variable
defined in any Userdata section (either in WBSP file itself or in include
files)
Returns
The value of the variable varname
Example
After running this example, the resulting page in browser, may look like this:
Title | Fireworks 4 for Windows and Macintosh Visual Quickstart Guide |
Year Published | 2001 |
ISBN | 0201731339 |
PubID | 1 |
AU_ID | 2 |
imageURL | 0201731339.jpg |
Qty | 100 |
Price | 100 |
ID | 13 |
In this example we can see that $WBRV will return exact content of the variable, as it is written in file. $WBV function will return an empty string, because WB_Query is not sent as form variable, but defined in file. $WBRRV will return processed value of the variable, but the processing will take place in the moment of executing $WBRRV function, so returned value for $wbfn{rnd(28)} will not be the same as used to select the record ($WBQuery contains correct value).