>>>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