Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call method after using addobject command
Message
 
 
To
29/04/2003 10:26:12
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00782689
Message ID:
00782698
Views:
11
>Hi All,
>
>Inside my init() of the form, I created commandbutton 'Command1' object by issuing the addobject command.
>
>This.addobject('Command1','CommandButton')
>
>Now, how would I add the code to call xMethod when user click on the button. TIA

You cannot add method code to the object method at runtime. There're other ways to acomplish what you want. See
- How to programmatically add code to method? Thread #774568
- Re: Adding objects Thread #774920
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform