Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Object Name as Variable
Message
 
 
To
10/11/2001 05:48:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00580107
Message ID:
00580111
Views:
15
>How can I refeance the object name as a variable?. I have several shapes on my form. I want to loop through them and turn them a diferent color one at a time.
FOR EACH loControl IN THISFORM.Controls
	IF loControl.BaseClass = "Shape"
		loControl.BackColor = RGB( 255, 0, 0 )
                ** anything else you want to do to the control here
	ENDIF
ENDFOR
jfh
Previous
Reply
Map
View

Click here to load this message in the networking platform