FMTS
Use the FMTS function to format elements of dynamic array for output. Each element of the array is independently acted upon and returned as an element in a new dynamic array.
COMMAND SYNTAX
FMTS(dynamic.array, format)
SYNTAX ELEMENTS
format is an expression that evaluates to a string of formatting codes. The Syntax of the format expression is:
[width] [background] justification [edit] [mask]
The format expression specifies the width of the output field, the placement of background or fill characters, line justification, editing specifications, and format masking.
For complete syntax details, See also: FMT function.
If dynamic.array evaluates to null, it returns null. If format evaluates to null, the FMTS function fails and the program enters the debugger.
EXAMPLE
X = 1234.56 :@FM: 123456.78 :@FM: -123456.78 :@FM: 1234567890 CRT OCONV( FMTS(X, 'R2*12'), 'MCP' )
Output:
∗∗∗∗∗1234.56^∗∗∗123456.78^∗∗-123456.78^234567890.00
Last update: Sat, 16 Jul 2022 15:34