General information
Category:
Forms & Form designer
>> 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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only