Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically add code to all controls
Message
From
11/12/2003 17:14:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
11/12/2003 17:06:25
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00858363
Message ID:
00858379
Views:
18
>I don't want it on every form in the project though (only one) and the textboxes already exist ON this form and there are 7 pages and hundreds of textboxes...
>
>I was hoping to issue something in the init of the form after DODEFAULT() that would step through all of the controls and add the code to the valid that time...

Then Bindevent() will do it. Recurse through all textboxes you got on that form (somewhere by the end of form.init) and bindevent the textbox.valid to your form's method. Don't have VFP8 here, but I seem to remember that there was an extra parameter to tell the bound code whether it should run before or after local code in the event.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform