Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding event code programmatically
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00991384
Message ID:
00991402
Views:
13
There's one complication with When and Valid events. The delegate code will never be triggered if there's no code in the event itself.

>Where is this code that you want to add at runtime located? Use BINDEVENT() to delegate the When (or any) event to the object method where this code is located. If the code is in a memo field, for example, you will need to compile this code into a class at runtime then create an instance of that class so you can use the BINDEVENT to delegate your events.
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform