Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Box displaying Directory and File Structure
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00034781
Message ID:
00034942
Views:
31
>> Greetings all. I have a list box in VFP 3.0 with rowsourcetype set to
>> files. If I choose a file then tab off of the list box then back on, the
>> list box resets to the default path. Is there a way to maintain the chosen
>> file and path when exiting and entering the list box, or maybe a better way
>> to do a file list? Thanks in advance for your help.
>
>If possible, use GetFile().
>
>Files in a list, from my experiences with 2.0 and 2.6, only return the
>filename, even if the file is in a different path, and I was unable to
>retrieve the path. MS may have enhanced things a bit so that you can
>check CURDIR(), but I wouldn't count on it.
>
>If you absolutely have to read the files into a form, then you may want
>to play with ADIR(), and keep track of the path yourself.

GETFILE() will solve all of my problems. I wish they would put VB's file list features into VFP. That would make things alot easier. Thanks for your help.

Andy Ahrndt
Systems Consultant
Computer Management Sciences, Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform