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

Opening Files

Status
Not open for further replies.

Jimgarry

MIS
May 16, 2000
112
I know how to open, My question is I am writing a system that uses data from other locations. that location will change on every install. How do I set a configuration file up so I can tell my programs were to access files
exampe
On this sysem the files are
d:\payconn\ecitc\junk1.dbf
* data files and program files

d:\tib\names.dbf
* data files only

on another system the files will be
c:\pcpay\import\junk1.dbf
*data and program files

p:\tib\names.dbf
* data files only.

Im useing data files from another program the installation of this other program varies

with fox base I use to declare a variable and then refer to it with a command like !filespec.filename
Im not sure any more

Thanks in advance

Jim Garry
 
Hey I got it! I knew there was a way

store the d:\timeclock\ to a mem var then ---


tcpath = (alltrim(m.filelocation) + "hours.dbf")
select 1
use &tcpath


Hope this helps others also.


 
Use a table.
Use sys_para.
use (alltrim(sys_para.drive)+alltrim(sys_Para.directory)+"HOURS.DBF")

This will allow you to change the location of the files on the fly without shutting down the application. David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top