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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Path

Status
Not open for further replies.

paulvdwa

Programmer
Jan 25, 2006
11
0
0
BE
Hello all,

I try to use SET PATH as following:

SET PATH TO
mpad = ((rstam)+'familie-boek\&naamdb\person1')
WAIT WINDOW mpad
SET PATH TO '&mpad' additive
WAIT WINDOW DBF()

the first WAIT WINDOW returns mpad
the second WAIT WINDOW returns an other table used in the INIT of my form

What is wrong in my code?

regards,

Paul
 

Paul,

DBF() has got nothing to do with SET PATH. It simply returns the path and filename of the table in the selected work area. Changing the path after you have opened the table won't make any difference.

Also, keep in mind that SET PATH ... ADDITIVE only works in VFP 9.0. In earlier versions, ADDITIVE is ignored.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Mike

Thank you
I omitted Select person1
Now all OK

regards Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top