Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box
Message
De
05/11/1999 12:14:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00287548
Message ID:
00287627
Vues:
16
Hi Ellen.

>> In the table, it stores M or F. With the combo box, I want to list male and female. How do I store a 1-digit code but display a description in the combo box? <<

For this example, specifically:

RowSourceType = 0-None
BoundColumn = 2
ColumnCount = 2
ColumnWidths = < width of combo >, 0
ControlSource = < table >.< Field >

This code goes in the combo's init:

This.AddItem( 'Female' )
This.List[ This.NewIndex, 2 ] = 'F'
This.AddItem( 'Male' )
This.List[ This.NewIndex, 2 ] = 'M'
This.AddItem( 'Unknown' )
This.List[ This.NewIndex, 2 ] = 'U'

Marcia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform