Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object.writemethod only at design time
Message
 
 
À
13/08/2001 07:34:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00542910
Message ID:
00542943
Vues:
10
This message has been marked as the solution to the initial question of the thread.
>>What am I doing wrong here , or in other words how can this be done 'at design time' :
>>
>>oMyForm=CREATEOBJECT("myformclass")
>>omyform.writemethod("init", "rem this is a remark")
>>
>>I get he message that writemethod is only available at design time. I'm willing to do so, but .writemethod is by it's nature at design time, isn't it ?
>
>Oops, I meant : ... by it's nature at run time ...

No, you're mistaken. Foxpro help specifcally states that it's "available at design time only". To use it you have to open form in Form Designer, select it and than run your builder. In the builder you can use ASELOBJ() to get reference to the form.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform