Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box default selected item
Message
De
09/08/2001 15:45:28
 
 
À
08/08/2001 18:01:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00541586
Message ID:
00541968
Vues:
13
Dan,

I may be missing something, here, but if all you want to do is highlight a particular item in the list, then after you create the array and requery() to update the list, set ListItemID to the number of the item you want to select.
WITH thisform.myCombobox
     * Add the array rowsource
     .AddProperty( "aRowSource[ 2 ]" )

     .RowSource = "this.aRowSource"
     .RowSourceType = 5

     * Populate the array
     .aRowSource[ 1 ] = "Yes"
     .aRowSource[ 2 ] = "No"

     * Populate the list from the array.
     .Requery()

     .ListItemID = 2 --> "No" is highlighted and selected.

ENDWITH
Regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform