Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return Value Form Form Object
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01160615
Message ID:
01160642
Views:
10
This message has been marked as a message which has helped to the initial question of the thread.
>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)
>
Olá Paulo.

Que tal criar uma propriedade MyValue no seu form e então acessá-la logo após o seu "Show" ?
Você pode criar várias propriedades e jogar seus valores nelas, usando logo após o form ser fechado.
oForm = CreateObjec('MyClassForm')
oForm.Show(1)
lMyValue = oForm.MyValue
oForm.release()
Espero que ajude.
Ivan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform