Set many "values" to variables 
Author Message
 Set many "values" to variables

Hi,
here is what I want to do. I want to have a couple of "squares". I want to
be able to set "properties" to these squares and then I want to do diffrent
things depending on the properties of these squeare.

For example,

I have 4 squares:
sq1, sq2, sq3 and sq4.
Now I want to set for example sq1 to "black" and "volvo" sq2 to "red" and
"Fiat"

then I want to be able to check if sq1 is black and if so do my stuff.

Can you do something like:

sq1.color = black and
sq1.car = volvo

then check like:

if sq1.color = black then
[Do the stuff]

TIA
/Stefan



Sun, 16 Nov 2003 07:31:22 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Loop print "VARIABLE", "VARIABLE"

2. "Object variable not set"

3. "Object variable....not set."

4. dynamically dim a variable ie dim "variable"&n

5. *"*-.,._,.-*"* I"LL TRADE VISUAL C++ FOR VBASIC *"*-.,_,.-*"*

6. setting "value" property of "file" object

7. "proper" use of variables in VBA

8. GetObject("","InternetExplorer.Application") fails in Excel VBA

9. Acc97: Problems using "Command" variable

10. SysCmd 603, "path","path"

11. Compile error: "Variable not defined"

12. Keeping a component object variable "live"

 

 
Powered by phpBB® Forum Software