$WBFF - show formated field value
Availability
$WBFF 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
$WBFF[fieldname|formatstring]
Parameters
fieldname - exactly the same field name as defined in
recordset.
formatstring - any valid named or user-defined format
string.
Returns
- The value stored in recordset field fieldname for current record formatted using
formatstring
- 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=2
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>Demo</title>
</head>
<body>
<!--WB_BeginDetail-->
<b>Date/time</b><br>
Original
content (using WBF): $wbf[demodate]<br>
Formated content (using WBFF):
$wbff[demodate|dd.mm.yyyy]<br>
Formated content (using WBFF):
$wbff[demodate|dddd, dd mmmm, yyyy]<br>
Formated content (using WBFF):
$wbff[demodate|hh:mm:ss]<br>
Formated content (using WBFF):
$wbff[demodate|hh:mm:ss
AM/PM]<br>
<b>Number</b><br>
Original content
(using WBF): $wbf[demonum]<br>
Formated content (using WBFF):
$wbff[demonum|#,###.00]<br>
Formated content (using WBFF):
$wbff[demonum|0.000]<br>
<!--WB_EndDetail-->
</body>
</html>
After running this example, the resulting page in browser, may look like
this:
Date/time
Original content (using
WBF): 1.7.2008 15:35:48
Formated content (using WBFF): 01.07.2008
Formated
content (using WBFF): Tuesday, 01 July, 2008
Formated content (using WBFF):
15:35:48
Formated content (using WBFF): 03:35:48
PM
Number
Original content (using WBF): 365724,65625
Formated
content (using WBFF): 365.724,66
Formated content (using WBFF):
365724,656