Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use DO FORM with TO
Message
From
18/06/2002 18:02:15
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00669922
Message ID:
00669927
Views:
13
>I have a FORM_A and FORM_B. FORM_A sends a parameter and returns a value. I put the following code in FORM_A command button:
>
>DO FORM FORM_B with parm1 TO parm_return
>
>My FORM_B is suppose to send back a value from a textbox for example
>
>thisform.txtmileage
>
>Where do I put the RETURN statement in FORM_B with this textbox value. I did put it in unload method but it didn't know what thisform.txtmileage was. There must be a way to get the value from textbox on FORM_B back to calling FORM_A form. Does anyone know how to do this?

When the unload method is issued txtmileage is already destroyed. Create a new property in form B (say, mileage) that is filled by valid or lostfocus event of txtmileage. The return statement in form b unload method can safely refer to this new property.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform