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