Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
@...SAY COLOR - Function Reference
Message
From
14/08/2007 15:58:35
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01248126
Message ID:
01248146
Views:
33
This is a little weird. @ 4,1 FILL TO 10, 8 COLOR RGB(255,0,0,255,255,225) works, but ?RGB(255,0,0,255,255,225) returns an error, too many arguments.....!

>Naomi,
>
>>What does the return of the function look like? Anyway, as Tore noted, RGB() would work as well. I was just trying to find some help on this command online and looks like this is an undocumented feature. At least not in the current MSDN online.
>
>This is from the help of 2.6 Windows on @SAY command
>
>
>For a list of colors and their corresponding color letters, see SET COLOR Commands Overview or Color Table by Color Pair.
>A color pair can also be specified with a set of 6 RGB (Red Green Blue) color values separated by commas.  The first 3 color values specify the foreground color and the second
>3 color values specify the background color.  The color values can range from 0 through 255.
>The R/W color pair in the example above can also be specified with this RGB color pair:
>
>
>
>RGB(255,0,0,255,255,255)
>
>
>
>For example:
>
>
>
>@ 2, 2 SAY 'This is red on white' COLOR R/W
>@ 4, 2 SAY 'This is Color Scheme 16' COLOR SCHEME 16
>IF _WINDOWS		&& FoxPro for Windows.
>	@ 6, 2 SAY 'This is red on white' COLOR RGB(255,0,0,255,255,225)
>ENDIF
>
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform