Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Box displaying Directory and File Structure
Message
From
03/06/1997 15:12:38
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00034781
Message ID:
00034821
Views:
36
>>>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.
>>>
>>>Andy Ahrndt
>>>Systems Consultant
>>>Computer Management Sciences, Inc.
>>
>>Did you try to SET DEFAULT ... in List.GotFocus event.
>I can SET DEFAULT in the GotFocus, but how do I return to path and filename (if any) in the LostFocus?
>
>Andy Ahrndt
>Systems Consultant
>Computer Management Sciences, Inc.

List.GotFocus event
This.tag=curdir()
set default to ...

List.LostFocus event
set default to this.tag

May be it's relevant to use SET PATH instead of SET DEFAULT (it depends on your app logics).
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform