@ ... FILL Command

Example   See Also

Changes the colors of existing text within an area of the screen.

Syntax

@ nRow1, nColumn1 FILL TO nRow2, nColumn2
[COLOR SCHEME nSchemeNumber | COLOR ColorPairList]

Arguments

@ nRow1, nColumn1

Specifies the upper-left corner of the area to change.

FILL TO nRow2, nColumn2

Specifies the lower-right corner of the area to change.

COLOR SCHEME nSchemeNumber

Specifies the color of the area. Only the first color pair in the specified color scheme determines the color of the area.

COLOR ColorPairList

Specifies the color of the area. Only the first color pair in the specified color pair list determines the color of the area.

If you omit the COLOR SCHEME or COLOR clauses, the rectangular portion is cleared. An area can also be cleared with @ ... CLEAR.

For information about color schemes and color pairs, see the Colors Overview online topic.

Remarks

This command changes the colors of text within a rectangular area of the main Visual FoxPro window or the active user-defined window. You can set the foreground and background color attributes for existing text only. Any text output to the same area after you issue @ ... FILL appears in the default screen or window colors.