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

find a file with Browser

Status
Not open for further replies.

DanNorris2000

Technical User
Nov 10, 2000
186
0
0
US
I want to be able to import a lotus worksheet to a free table. I want to be able to use a windows explorer type dialog box to locate the file I want to import click on the file so that the import can do its stuff. Any thoughts or examples would be appreciated. Using VFP 8

 
cFile = GetFile()


Ali Koumaiha
TeknoSoft Inc
Farmington Hills, Michigan
 
You can use the IMPORT FROM or the APPEND FROM command assuming the version of the file is "old" enough. Check the help file for the details.

Rick
 
Yes, with GetFile() you can specify a default directory but it takes an extra step...

SET DEFAULT TO "C:\"
?GETFILE()


Slighthaze = NULL
[sub]craig1442@mchsi.com[/sub][sup]
"Whom computers would destroy, they must first drive mad." - Anon​
[/sup]
 


lcOldDefault = SYS(5) + SYS(2003)
SET DEFAULT TO "k:\acct\rlw"
cfile=GETFILE()
SET DEFAULT TO(lcOldDefault)
IMPORT FROM cfile TYPE WK1

the above allows me to locate the .wk1 file that I want to import but returns file not found when import part is run

from debug cfile="k:\acct\rlw\aswp44.wk1"

 
try enclosing the cFile in paranthesis such as...

IMPORT FROM (cfile) TYPE WK1

Slighthaze = NULL
[sub]craig1442@mchsi.com[/sub][sup]
"Whom computers would destroy, they must first drive mad." - Anon​
[/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top