Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List Box displaying Directory and File Structure
Message
De
03/06/1997 15:14:37
 
 
À
03/06/1997 15:12:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00034781
Message ID:
00034823
Vues:
40
>>>>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).

Sorry, LostFocus probably should include:
cTag=this.tag
set default to &cTag.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform