Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to programmatically add code to method?
Message
From
06/04/2003 19:38:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to programmatically add code to method?
Miscellaneous
Thread ID:
00774568
Message ID:
00774568
Views:
51
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
On a CLEAR day you can see forever.
Next
Reply
Map
View

Click here to load this message in the networking platform