Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Big problem, please help!
Message
 
À
18/04/1998 20:23:38
Raul Davila
Davila Programming Services
Toa Alta, Porto Rico
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00093210
Message ID:
00093223
Vues:
27
>The table has two fields (ID, DESCRIPTION). ID is sequential starting from 1. I
>save the last ID used in my config.dbf and use that value to generate a new ID
>whenever needed.
>WITH MyCombo
> .RowSourceType = 6 - Fields
> .RowSource = ITEMS.DESCRIPTION, ID
> .BoundColumns = 2 &&the column containing ITEMS.ID
> .ColumnWidths = 75,0
> .some other things not important
>ENDWITH

It sounds to me as if it's taking the list index, instead of the ID value. This is actually the way that combos are documented to work, for backwards compatibility (I think). However, in VFP5, they added the BoundTo property, which makes the combo work the way we think it should. Set it to .T., and you should be all set. This is a change I make very low on my class hierarchy...
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform