$WBRF - show field value with processing WhizBase code

Availability
$WBRF  is available for use with following recordset related WBSP commands:
UPDATE
MULTI UPDATE
DELETE
QUERY
Send Personal Mail (if recordset is used)
Send Bulk Mail.

Syntax
$WBRF[fieldname]

Parameters
fieldname - exactly the same field name as defined in recordset.

Returns

  1. The rendered value stored in recordset field fieldname for current record. This means that WBSP will process any WBSP tag and/or function contained in the field value before it sends it to the client
  2. Nothing (empty string) if recordset does not exist or there is no current record, or if field value is NULL.

Example

<!--
[FormFields]
WB_basename=test.mdb
wb_rcdset=demo
wb_command=Q
wb_query=ID=1
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>Demo</title>
</head>
<body>
<table border="1" cellspacing="0">
<tr>
<td>Original content (using WBF)</td>
<td>Rendered content (using WBRF)</td>
</tr>
<!--WB_BeginDetail-->
<tr>
<td>$wbf[demotext]</td>
<td>$wbrf[demotext]</td>
</tr>
<!--WB_EndDetail-->
</table>
</body>
</html> 

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

Original content
(using WBF)
Rendered content
(using WBRF)
$wbfn[RND(10)] 5

Refresh the page few times and watch the changes of the result.