[TOC] [Prev] [Next] [Bottom]



<@FORMAT>

Syntax

<@FORMAT STR=string [FORMAT=format] [INFORMAT=informat]
[ENCODING=
encoding]>

Summary

Allows access to the reformatting routines independent of the other tags. The tag takes a STR attribute for the text to reformat and an optional FORMAT attribute indicating the desired output format. An optional INFORMAT attribute is provided for datetime-class formatting to accept non-standard datetime values.

Examples

To output the current date in ODBC/ISO style, purposely using a timestamp.

<@FORMAT STR="<@CURRENTTIMESTAMP>" FORMAT="datetime:%Y-%m-%d" INFORMAT="datetime:<@VAR NAME='timestampFormat'>">

To output a thousands-grouped integer value.

If a kilobyte is 1024 (2^10 bytes), then a megabyte should be <@FORMAT STR=<@CALC EXPR="1024 * 1024"> FORMAT="num:comma-integer"> bytes.

See Also

Encoding Attribute
Format Attribute



[TOC] [Prev] [Next] [Bottom]



docs@pervasive.com

Copyright © 1998, Pervasive Software Inc. All rights reserved.