Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: bryan wetton
  Where is bryan wetton?
 Morphett Vale
 Australia
 bryan wetton
 To: Andy Kramek
  Where is Andy Kramek?
 Westminster Circle, Akron
 Ohio - United States
 Andy Kramek
 Tags
Subject: RE: Confusion with parameters and OPEN
Thread ID: 209211 Message ID: 209214 # Views: 35 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Friday, December 26, 2008 2:37:04 AM         
   


Hello Andy,

Thanks for trying to help me.


> JustPath only works if the target HAS a path. You can't use it on just a file name because there is no path associated with it. SO you either need to include the path in the file name, or dervie it somehow.

newpath=Justpath(myoldfull)

As I thought I stated in my post myoldfull contains the full path as provided from an ADIR()

Using the debugger I do see the correct path with curdir()

>
> As for the USE command, it expects a name expression so you can use: "USE (lcFileName)"
>

One part of my post was incorrect

I DO use

USE (myoldfile) In 0

I had tried without the () in desperation.

Consequently I am still frustrated that the USE command does not work.

Yours is a critical routine to open all 20 tables easily and then make copies of them.



> Merry Christmas

And to you and yours and a Happy New Year for 2009.

-Bryan



COMPLETE THREAD
Confusion with parameters and OPEN Posted by bryan wetton @ 12/26/2008 12:38:45 AM
RE: Confusion with parameters and OPEN Posted by Andy Kramek @ 12/26/2008 2:25:11 AM
RE: Confusion with parameters and OPEN Posted by bryan wetton @ 12/26/2008 2:37:04 AM
RE: Confusion with parameters and OPEN Posted by Andy Kramek @ 12/26/2008 1:49:04 PM
RE: Confusion with parameters and OPEN Posted by bryan wetton @ 12/27/2008 2:32:06 AM
RE: Confusion with parameters and OPEN Posted by Andy Kramek @ 12/27/2008 4:05:04 AM
RE: Confusion with parameters and OPEN Posted by bryan wetton @ 12/27/2008 5:07:54 AM
RE: Confusion with parameters and OPEN Posted by Andy Kramek @ 12/27/2008 7:06:59 PM
RE: Confusion with parameters and OPEN Posted by bryan wetton @ 12/27/2008 11:04:24 PM