Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a modal form object
Message
 
To
29/08/2000 07:09:25
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00410089
Message ID:
00410165
Views:
21
>I knew that ther was an easy way to accomplish the task. By the way, is there a manner to simulate the 'DO FORM MyForm TO MyValue'. I mean to return a value from the form with my 'of' form object ?

Christian,

Nope. You can, however, use a property of the modal form to store the value you are interested in. Then you could;
LOCAL loForm
loForm = CreateObject("YourFormClass")
loForm.Show(1)

* Let the form class call its Hide method when you are done with it.

lcLocalVariable = loForm.PropertyName

* Now lcLocalVariable contains the value your form placed in its property

* Now release the modal form from memory
loForm.Release()
Previous
Reply
Map
View

Click here to load this message in the networking platform