Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to return a value from an instantiated form class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01207599
Message ID:
01207610
Views:
18
>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.
Ivan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform