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:
00774574
Views:
16
>I wonder if anybody can help me, as I haven't been able to find out how to programmatically add code to a method, as in the following example:
>
>
>getcopy = CREATEOBJECT("FORM")
>getcopy.AddObject("txtbegindate","TEXTBOX")
>getcopy.AddObject("txtenddate","TEXTBOX")
>getcopy.txtbegindate.value = specials.beg_date
>getcopy.txtenddate.value = specials.end_date
>getcopy.addObject("cmdOK","COMMANDBUTTON")
>getcopy.windowtype = 1
>getcopy.txtbegindate.visible = .t.
>getcopy.txtenddate.visible = .t.
>getcopy.txtbegindate.top = 26
>getcopy.txtbegindate.left = 42
>getcopy.txtenddate.top = 88
>getcopy.txtenddate.left = 42
>
>* this fails - read only
>getcopy.cmdOk.Click = "Thisform.Release"
>
>getcopy.show
>
>What's the secret to this?
>
>Thanks in advance!

Andrew,

You cannot add code to an object methods. What're trying to achive?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform