11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FMT<br />

Syntax<br />

FMT(expr, "len [f.char] {L | R | T | C} [n] [$] [,] [Z] [mask]")<br />

FMT(expr, "{L | R | T | C} # len [f.char] [n] [$] [,] [Z] [mask]")<br />

expr "[L | R | T | C] # len [f.char] [n] [$] [,] [Z] [mask]"<br />

FMT(expr, pattern.var)<br />

Description<br />

The <strong>UniBasic</strong> FMT function formats data in expr for display purposes. FMT can<br />

format a dynamic array that contains multivalues. The statement can be no longer<br />

than 2,046 characters.<br />

In the first form of the syntax, L, R, C, or T and len are required.<br />

The second form is the same as the first form with the elements in a different order.<br />

The third form does not include the keyword FMT, but the elements are in the same<br />

order as in the second form.<br />

In the fourth form, you provide the pattern format in a variable, pattern.var.<br />

Note: The FMT function can produce different results based on the BASICTYPE<br />

setting. The parameter descriptions that follow represent BASICTYPE U.<br />

1-266 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!