Fill= Print Format Option
Obsolete
This option is obsolete. This format option is valid only in character-mode DataFlex. There is no Windows equivalent for this option.
Purpose
To fill in the blank spaces in a window with a specified fill character for output.
Syntax
print
source
[
to
destination
]
{fill="*"
[..., option]
}
{Fill=} may be used only on format or print command lines. The asterisk (*) represents any printable character, literally, desired for filling.
What It Does
When fill= is on a format or print command line, it causes the print command to fill in unused leading or trailing spaces in windows, using the fill character specified in the option.
- In numeric windows, the leading spaces to the left of the number are filled with the fill character.
- In string type windows, the trailing spaces to the right of the contents are filled with the fill character. Spaces embedded within a string are not filled.
Example 1
format affidavit.2 to affidavit.9 {fill="#"}
In this example, the blank spaces in the second through ninth windows in Imageaffidavit will be filled with pound signs (#) any time they are output.
Example 2
print check_amount to check_form.2 {fill="*",points=2}
In this example, the blank spaces in the second window of Imagecheck_form will be filled with asterisks (*) any time it is output. Fractional values will be output only to the second digit to the right of the decimal point.
Notes
-
You may specify no more than eight different fill characters in any single program, but you may use the
fill=option on as many windows as you wish in a program. -
If a
fill=option is used on a display, entry, or accept command line, it will have no effect, as it is intended only for use with the print and format commands. -
Fill=is attached permanently to the windows to which it is applied. If another print command addresses afill=formatted window, the option will still be in effect, even though it is not given on the print command line.