Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


More variable problems

More variable problems

More variable problems

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.


RE: More variable problems

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.

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.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close