Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return Value from Form Object
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01160651
Message ID:
01160696
Views:
7
>When I want to return a value from one form use the following Syntax:
>
>
>DO Form WITH MyPar  TO MyVar
>
>
>With the following code in the UnLoad event of the Form:
>
>
>Return MyValue
>
>
>
>How to return the value from an object form, that it was created with CreateObject?
>
>
>oForm = CreateObjec('MyClassForm')
>oForm.Show(1)
>
Do not release but hide form. Then you don't even need to retrun a value. ie:
oForm = CreateObjec('MyClassForm')
oForm.Show(1)
luSomeValue = oForm.SomeProperty
oForm.release()
release oForm
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform