Skip to content

Signrt Print Format Option

Obsolete

This option is obsolete. This command is valid only in character-mode DataFlex or BasicReport objects.

See Also

Purpose

To place a minus sign on the right side of negative values in report output.

Syntax

print
variable [
    to
    window
] [
    {signrt
    [..., option]
    }
]

What It Does

When signrt is on a format or print command line, negative numbers displayed through the window are shown with the minus sign to the right instead of to the left, as they are otherwise.

format image.3 thru image.6 {signrt}

In this example, Windows 3 through 6 of Image are formatted to place the minus sign on the right of numbers.

print parts.cost to screen.2 {signrt, points=2}

In this example, the value of Field cost in Database File parts is printed to the second window of Image screen with negative numbers to the right, and with only the first two decimal places to the right of the decimal point displayed.

Notes

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

  • When setting the size of a window that may display negative numbers, remember to provide an additional space for the minus sign (whether it is on the left or the right), as well as for other formatting characters such as decimal points and commas.

  • If a signrt option is used on an entry_item command line, it will have no effect, as it is intended only for use with the print and format commands.

  • Do not address signrt-formatted windows in expressions, since the misplaced minus sign may corrupt the value of the windows.