Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Procedures, returning values
Message
 
To
23/06/1999 13:14:34
Frank Cavone
Monetary Management of Ny, Inc.
Albany, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00233065
Message ID:
00233068
Views:
23
Frank,

Make sure the form's WindowState property is set to Modal. Then you can return a value from the form by putting a RETURN statement in the form's Unload event. You can also pass a parameter to the form by putting an LPARAMETERS statement at the beginning of the form's Init. To pass lcMyParam to the form and store the value returned by the form to lcMyResult, you would call the form like this:

DO FORM MyForm WITH lcMyParam TO lcMyResult

>to all
>i am rewriting a fox 2.x for dos program for vfp6. the old pgm used procedures to put up a screen and then return a value. I tried to do this by calling a form within a procdure. the procedure displays the form but continues to execute the commands after the do form without waiting for a return value.
>
>suggestions!
>thank you
>frank
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform