Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
RealityV15.1Online Documentation (MoTW) Revision 7
FMT Function (DataBasic) (m618703+fmt_f.htm)
Applies formatting to a string.
FMT(source, format)
source An expression that evaluates to the string to which the formatting is to be applied.
format A string specifying the required formatting.
The modified string.
The FMT function provides an alternative way of applying a format string. For example, the following statements produce the same result:
PRINT 1000 "R$,2#9"
PRINT FMT(1000, "R$,2#9")
OCONV function.
A = "ABC" B = FMT(A, 'MCAX') PRINT B
This prints 414243 (MCAX converts ASCII characters to their hex values).