Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing ComboBox
Message
De
12/12/2010 12:54:01
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Closing ComboBox
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01492450
Message ID:
01492450
Vues:
143
I have a form with a ComboBox (DropDown List). It contains these methods:
*!*Init:
this.RowSourceType= 0
*!*GotFocus
Keyboard '{ALT+DNARROW}' Plain Clear
The click event of another control (ComboBox) contains:
SELECT style,descrip,colors,retail,uniqueid FROM catalog WHERE page =VAL(this.value) INTO array gathispage
LOCAL lnDisplayCount
lnDisplayCount = MIN(16,ALEN(gathispage,1))
thisform.combo1.RowSource= 'gathispage'
thisform.combo1.ColumnCount = ALEN(gathispage,2)
thisform.combo1.RowSourceType= 5
thisform.combo1.DisplayCount= lnDisplayCount
thisform.combo1.Visible = .t.
thisform.combo1.SetFocus 
This accurately populates and displays the ComboBox.

I want to close the ComboBox from the click event of another control (Command Button)
It's code is:
*!*Click Event
thisform.combo1.Visible = .f.
thisform.combo1.rowsource = 0
The desired action is to make the ComboBox invisible, but sometimes it only closes the DropDown List and a second click event is needed to make the ComboBox invisible. How can I make the ComboBox always become invisible on the first click?

Thanks,

dg
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform