RLIB supported "new style" format strings that allowed
formatting numeric data as monetary values and allowed
to disambiguate between format strings used for different
data types. This was needed because some format flags
are used in both printf()
,
strfmon()
and strftime()
.
This is an extension over RLIB, which didn't have
such a notion. In OpenCReports, the new style flag
is prefixed with !&
.
The new style flag is the legacy flag prefixed with !#
There was way to format numeric data using the legacy
formatting flags. The new style flag is prefixed with
!$
and uses the flags of
strfmon()
. See the
strfmon()
function for details.
To print the correct currency name, the locale must be set for the report. Only one locale can be set, so a single currency name will be used for every value using monetary formatting.
The new style flag is the legacy flags prefixed with
!@
. Formatting a datetime value uses
strftime().
Examples for using these in the Text element format attribute can be found in the Format attribute examples.