Thanks for the reply Ivan! Actually that's what I'm doing, just wanted to see if there's a more direct way like the Do form myForm to myVariable.
Enmanuel
>>Hi all, I'm wondering if there's a way to return a value from a form's class instanced with create object, like this:
>>
>>
>> oForm = createobject("myFormClass")
>>
>>
>>This particular class is for a custom dialog form and hence will always run as modal. I was thinking to create an object before instancing the form and pass the return value to that object but I'm wondering if there's a more direct way of doing this.
>>
>>TIA,
>>
>>Enmanuel
>
>
>Hi Enmanuel.
>
>Have you tried to create a property into your form and then getting its value before you release it?
>
>
> oForm = createobject("myFormClass")
> oForm.show()
> lcMyParam = m.oForm.cParam
>
>
>Abraços.
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain