Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box Values...
Message
 
À
18/01/2000 14:30:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00319568
Message ID:
00319572
Vues:
9
>Does any know how I can have the default values for a combo box as:
>
>Blank
>Days
>Months
>Years
>
>Or do I have to put all these values in a table and have it point to there?
>
>TIA
>
>Jeff T.

Ensure that you set style to dropdownlist and rowsource to this.aitems and rowsourcetype to 5 - array

In the init of the form I had code that went

WITH ThisForm.C40Combo
.SORTED = .F.
.CLEAR()
DIMENSION .aitems[3]
.aitems[1] = ' '
.aitems[2] = 'Days'
.aitems[3] = 'Months'
.aitems[4] = 'Years'
.Requery()
.ListIndex = 1
ENDWITH

Hope this helps or maybe leads you to a solution
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform