Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing a form's method dynamically
Message
De
22/04/2002 13:44:39
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00647694
Message ID:
00647702
Vues:
12
Hi Rodrigo for you to use thisform the object should be created by addobject and not as createobject.

>Hi
>
>I create an instance for a non visual class (session base class) in a form
>The object have a property named cExecute, that is defined when the object is loaded
>
>
>thisform.oObject=createobject(...
>thisform.oObject.cExecute='thisform.MethodToExecute()'
>
>
>In a method inside oObject y have the following code
>
>
>local lcExecute
>lcExecute=this.cExecute
>&lcExecute
>
>
>I got an error, the object is not contained in a form.
>What can I do? Any workaround?
>
>TIA
Alexandre Palma
Senior Application Architect
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform