Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>Question:
>>I have a ListBox on a form. I have set the RowSourceType to 7 and the RowSource to '*.DBF'. When clicking on the listbox to change directories and select files everything works fine. When the listbox loses focus, I lose the directory I was in prior to moving off of this control. Is there a way that I can SET DEFAULT TO according to the directories that I choose in the ListBox???? I notice that when I do change dirs in the list, the object.value is always [..] unless I choose a file. I am trying to select multiple filenames from my drives and place them in a list of another ListBox. This portion I have right, but what next???? I think it's awkward to have to reselect the drive that I want to use everytime.
>
>You could make a trick:
>*** Form Init event
>this.curdir=curdir()
>*** Listbox Init event
>this.tag=curdir()
>*** ListBox Lostfocus event
>local cPath
>cPath=thisform.curdir
>set defa to &cPath.
>this.tag=this.list(2)
>*** ListBox Gotfocus event
>local cPath
>cPath=this.tag
>set defa to &cPath.
Thank you very much, Ed... I tried that and it worked.... Somehow, after following these threads, I knew that you would be the one to answer my question... :-) You seem to be the Combo/ListBox GURU!!! Again, Thank you..
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement