Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to programmatically add code to method?
Message
De
06/04/2003 19:38:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to programmatically add code to method?
Divers
Thread ID:
00774568
Message ID:
00774568
Vues:
52
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform