Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding method code at runtime
Message
From
12/05/2004 10:11:29
 
 
To
12/05/2004 09:35:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00903145
Message ID:
00903161
Views:
19
Hello,

Which version of the VFP do you use? You may do little trick in VFP8 with BINDEVENTS() function. It could look like:

You have dbf with fields ControlID, MethodID, mCode. When you scan this table, you look for the real control object with same controlID and create some oApp.aExternalEvents[x] = Createobject("conroller",ControlID,MethodID) object, and bind this control event to the controller object "onEvent".

Controller object is a custom class, and in the "OnEvent" method of this class you can search in the table This.ControlID, This.MethodID and if FOUND(), then EXECSCRIPT(mCode)
I do like this way... works great ;)

Denis


>Hello !!!!
>
> I can add method code at runtime ?????
>
> How.....????
>
> Thanks...
>
> Emilio G. Burgoa
> San Juan - Argentina
> egburgoa@hotmail.com
> egburgoa@yahoo.com.ar
Previous
Reply
Map
View

Click here to load this message in the networking platform