Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getfile()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01668266
Message ID:
01668271
Views:
83
GETFILE() uses the current directory. So - change the current directory then reset it when you're done.

You have to save the original directory anyway because all of VFP's (Windows' really) folder functions change the path when you pick a file or folder from a new location.
lcOldPath = SYS(5) + CurDir()

CD (lcStartPath)
lcFile = GETFILE(...)

CD (lcOldPath)
+++ Rick ---

>Hi,
>Is there a way to make getfile() start looking in a by me instantiated directory instead of the default directory?
>Regards,
>Koen
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform