Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing a form's method dynamically
Message
From
22/04/2002 13:44:39
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00647694
Message ID:
00647702
Views:
11
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
Previous
Reply
Map
View

Click here to load this message in the networking platform