Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing values to another form.
Message
From
21/07/1998 12:12:46
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
21/07/1998 11:24:22
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00119709
Message ID:
00119736
Views:
24
>>>I have form that has a text box bound to a table. I need to pass the value in the text box to another form. How do I do that and what would the code look like?
>>>
>>>Thanks, Brad.
>>
>>If you are creating the new form, then it's not such a problem
>>
>>Use
>>
>>DO FORM formname WITH THISFORM.Textbox.Value
>>or
>>loForm = CreateObject( "formclass", THISFORM.Textbox.Value)
>>
>>and then pick up the passed value by using a PARAMETERS statement in the Init of the Form.
>
>Mark,
>
>Thanks for responding to my question. What should the init code on the form look like with the parameters?
>
>I am using on the main form DO FORM c:\b3\magnify.scx with thisform.text1.value
>
>I put LPARAMETER cString in the init of the second form. Does it automatically asign the passed variable to the parameter?
>
>Thanks again,
>Brad.

Yes, the value should be inside cString when the Init code runs.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform