FMTDW(), FMTDWS()

FMTDW(), FMTDWS()

Top  Previous  Next

 

The FMTDW() function performs data formatting according to a format template based on display width. The FMTDWS() function is identical to FMTDW() except that it works on each element of a dynamic array in turn, returning the result in a similarly delimited dynamic array.

 

 

Format

 

FMTDW(expr, fmt.spec)

FMTDWS(expr, fmt.spec)

 

where

 

exprevaluates to the data to be formatted

 

fmt.specevaluates to the format specification.

 

 

The FMT() function sets the STATUS() function value to indicate whether the operation was successful. Possible values are

 

0Successful formatting.
1Data to format was too long or invalid for the format specification.
2The format specification was invalid.

 

Operations  that result in a non-zero STATUS() value return expr as the function result.

 

 

See also:

FMT(), FMTS(), format specifications