>>>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.