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

Click here to load this message in the networking platform