SUMMARY
The following command can be used to fill in an enclosed polygon:
PAINT (x,y), pat, border
In this case, x and y represent screen coordinates inside the polygon;
the figure is drawn in a color specified by "border" and the variable
"pat" may be either an integer or a character string. If "pat" is an
integer, the fill is done with a solid color. But if "pat" is a string
value, it represents a fill pattern.
A string value for "pat" works correctly in the QB.EXE environment
whether the string value is a fixed-length string or a variable-length
string. However, the compiled .EXE version of such a program produces
an "Illegal function call" error when "pat" is a fixed-length string.
This design limitation applies to QuickBasic Versions 4.00, 4.00b, and
4.50, to Microsoft Basic Compiler Versions 6.00 and 6.00b for MS-DOS
and MS OS/2, and to Microsoft Basic PDS Version 7.00 for MS-DOS and MS
OS/2.