Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More variable problems

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
Thanks for the great advice on the first problem guys, It solved my problem, now I have a new situation.

My project has 2 forms named CVT & IMPORT, when the program is first ran, CVT comes up and asks for a getfile in a textbox named txtInput. After they press the cmdbutton named "OK" it calls form IMPORT. Inside import I need to know the value of txtInput. how can I pass it to the 2nd form? I tried referencing CVT.txtInput.Value, but it did not work.

I realize this is pretty basic, but I have no formal training on VFP, and my books are not very usefull for working Data like I do, they seem more geared for writing Inventory control systems, and such.

As always any help is greatly appreciated.

-Mike
 
Mike,
There are lots of ways to do this, but one is to pass the value as a parameter when you fire up the IMPORT form. e.g.
DO FORM IMPORT WITH ThisForm.txtInput.Value

Then in your IMPORT INIT() method, you'll need a PARAMETERS statement. e.g.
PARAMETERS p_cFileName

Now you just need to set the appropriate form control or user defined property with this value, since p_cFileName's "scope" is limited to just the INIT() method.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top