Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically add code to all controls
Message
From
11/12/2003 16:59:23
 
 
To
11/12/2003 16:26:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00858363
Message ID:
00858374
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
Perhaps the 'ReadMethod' & 'WriteMethod' Methods?

Grab a design time reference to the form with:
=ASELOBJ(gaobj,1)

Then iterate through the controls and use the 'ReadMethod' to get the pre-existent code into a variable and concatenate your additional code:

LcDesiredCode = “THISFORM.mcalendorse=.T.” + CHR(13) ;
+ oControl.ReadMethod(“VALID”)

oControl.WriteMethod(“VALID”, LcDesiredCode)
Thank you,
- Frank
Previous
Reply
Map
View

Click here to load this message in the networking platform