Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another ComboBox Question......
Message
De
06/11/1997 11:07:02
 
 
À
06/11/1997 10:28:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00058592
Message ID:
00058604
Vues:
30
>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.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform