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.