Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Defining colors.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00153684
Message ID:
00153718
Views:
19
James,

A couple of ways:

#define YELLOW rgb( 255, 255, 0 )

or

public gnYellow
gnYellow = rgb( 255, 255, 0 )

this.BackColor = YELLOW && gnYellow

If you use the #define you can put them all in a .h file to include in your forms and classlibs.

>How would I define a color and use it? I want to be able to substitute the name for the actual RGB command. For example I would like to use thisform.background=Yellow, instead of thisform.background=rgb(255,255,0).
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform