Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getfile in another directory other than home
Message
From
10/01/2017 19:22:53
 
 
To
10/01/2017 19:03:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01646483
Message ID:
01646484
Views:
61
>How would I modify this retrieve statement to open a file in a chosen directory
>say the directory I want to inspect is C:/MyDir/*.txt
>Without having to CD
>
>gcTableName = GETFILE('txt', 'Open Table:')
>
>thanks
>k

Apologies - Antonio lopes had answered this query for me last year - I just found it.

TRY
m.lcFilePath = LOCFILE("C:\backups\TP*.dbf","Table:DBF","Import Table:")
CATCH
m.lcFilePath = ""
ENDTRY

MESSAGEBOX(m.lcFilePath)
Previous
Reply
Map
View

Click here to load this message in the networking platform