$WBRV - read configuration variable

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

<!--
[FormFields]
wb_command=q
wb_basename=biblioA.mdb
wb_rcdset=titles
wb_query=id=$wbfn{rnd(28)}
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>WBRV example</title>
</head>
<body>
WBRV:$wbrv[wb_query]<br>
WBRRV:$wbrrv[wb_query]<br>
WBV:$wbv[wb_query]<br>
WBQuery:$wbquery
$wbdetail[f]
</body>
</html>

After running this example, the resulting page in browser, may look like this:

WBRV:id=$wbfn{rnd(28)}
WBRRV:id=5
WBV:
WBQuery:id=13

 

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).