Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recurse through all controls
Message
From
18/05/2004 07:53:20
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00904798
Message ID:
00904863
Views:
11

Has anyone got a good tight routine that recurses through all controls on a form, including containers, pageframes etc. ?

I keep coming up with code that looks too ugly to be doing it smart ! :)


If you can use subclassed objects, then.
* on every subclass add this
objCommand = ''
PROCEDURE objCommand_Assign
LPARAMETERS objCommand
   this.objCommand = EVAL(m.objCommand) && save the result into the property
ENDPROC

* when you want call the tree form objects
thisform.SetAll('objCommand',"this.objMethod(this.myproperty,.....")
Previous
Reply
Map
View

Click here to load this message in the networking platform