Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object.writemethod only at design time
Message
De
13/08/2001 08:49:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00542910
Message ID:
00542948
Vues:
15
>>>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.

Thanks, Sergey,

Think I see the point. I think I'm working in opposite direction ; my builderprogram creates an instance of the form (which is runtime), changes it and then executes a object.saveas(), but what you propose is start from the formdesigner (which is designtime) and put my builder on top of that. Correct me if I'm wrong ...

Thanks again.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform