Skip to content

Float$ Print Format Option

Obsolete

This option is obsolete. This format option is valid only in character-mode DataFlex. In DataFlex, you can use the Field_Mask property of the DataDictionary class or the Currency_Mask method.

See Also

Purpose

To place the currency characters ($, etc.) immediately to the left of the contents of windows addressed by the print command.

Syntax

print
source
[
    to
    destination
]
{float$
[..., option]
}

What It Does

When float$ is on a format or print command line (the only places it may be used), it places the currency characters immediately to the left of the contents of the destination window(s).

The currency characters ($, etc.) are whatever characters were installed in the DataFlex Configuration to represent money.

format paycheck.2 thru paycheck.5 {float$}

This example would format the second through fifth windows of Imagepaycheck to place the currency characters immediately to the left of any contents of the windows.

print cust.balance to statement.2 {float$, points=2}

This example would format the second window of Imagestatement to place the currency characters immediately to the left of the contents of the window, and to display two digits to the right of the decimal point (points=2).

Notes

  • Float$ has no effect on non-numeric windows, and so may be used in format commands addressing a range of windows as long as the format is desired for every numeric window in the range.

  • When setting the size of a window which will have the float$ option on it, provide additional space(s) for the currency characters, as well as for other formatting characters such as minus signs, decimal points, and commas.