If tColor = 'RED' or tColor = 'BLUE' or tColor = 'Green', etc.
Is there a way to change the above if statement when I can give a list or values?
I know the syntax is not correct, but something like this...
If tColor = ('RED', 'BLUE', 'GREEN') then...
Thanks!
Warren
If Command Question
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
if tColor is among the items of "RED,BLUE,GREEN" then...
(Although you could spell tColour properly

or
Code: Select all
if tColor is among the words of "RED BLUE GREEN" then...
-
- Posts: 10
- Joined: Sat Mar 11, 2006 5:11 pm
- Contact:
a color is not always a color name when tested
Sometimes I've set the forecolor of something to "red" and then when I test it later, it's 255,0,0, not "red".
[img]http://daniels-mara.com/hosted_images/dm_logo.png[/img]
[b]Jerry Daniels[/b]
[size=92]Daniels & Mara, Inc.[/size]
[size=84]Creator of [url=http://glx2.com][b]GLX2 Tools[/b][/url]
Host of [url=http://revmentor.com][b]Rev Mentor[/b][/url][/size]
[b]Jerry Daniels[/b]
[size=92]Daniels & Mara, Inc.[/size]
[size=84]Creator of [url=http://glx2.com][b]GLX2 Tools[/b][/url]
Host of [url=http://revmentor.com][b]Rev Mentor[/b][/url][/size]