Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need opinion/advice about instantiating forms
Message
From
20/11/2005 11:54:28
 
 
To
19/11/2005 19:59:57
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01070570
Message ID:
01070628
Views:
16
Hello Greg,

>When you create an object of the form via NEWOBJECT(), and it is desired to return a value (modal form), you cannot return a value via the RETURN statement in the Unload() event (no variable to catch the value declared). In this case you would need to pass an object reference from the calling program to hold the return values. However, in the DO FORM command, you can return a value via:
>
>DO FORM DateEntry TO llReturnValue

I just use global variable or application object property to return whatever i want to return. also, you can return anything you want from the form directly if the form is modal.
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer
Previous
Reply
Map
View

Click here to load this message in the networking platform