11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

len Specifies the total number of single-byte characters to appear in the output<br />

string.<br />

f.char Specifies a single-byte fill character to be used if the formatted string is not<br />

long enough to fill len; the default is a space. Cannot be a multibyte character.<br />

Prefix a numeric f.char with \ to indicate it is the fill character.<br />

L Specifies left-justification in a string of len spaces. If the text is longer than<br />

len, the text is broken in len intervals. Has no effect in multibyte languages.<br />

R Specifies right-justification in a string of len spaces. Has no effect in<br />

multibyte languages.<br />

C Specifies centered text in the column of width len. Has no effect in multibyte<br />

languages.<br />

T Specifies text justification. If data must be broken to fit in a column, it is<br />

justified on a word basis (from space to space). Has no effect in multibyte<br />

languages.<br />

n Specifies the maximum number of decimal places allowed, rounding as<br />

necessary. If n = 0, the number is rounded to an integer.<br />

$ Prints a dollar sign before the formatted string. Valid for numeric data only.<br />

, Prints numbers with commas separating each level of thousands. Valid for<br />

numeric data only.<br />

Z Specifies the suppression of leading zeros.<br />

mask Specifies a pattern mask composed of numbers and other characters.<br />

Numeric data is placed sequentially in the mask before justification.<br />

FMT Parameters<br />

FMT 1-267

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

Saved successfully!

Ooh no, something went wrong!