Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to programmatically add code to method?
Message
 
To
06/04/2003 19:38:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00774568
Message ID:
00774596
Views:
6
This message has been marked as a message which has helped to the initial question of the thread.
>* this fails - read only
>getcopy.cmdOk.Click = "Thisform.Release"

Sergey is, of course, correct that you can't do what you're trying to do, but if you're writing a builder to add code at design time, instead of run time, you can use the WriteMethod() function.
GetCopy.cmdOK.WriteMethod("Click", "ThisForm.Release()")
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Reply
Map
View

Click here to load this message in the networking platform