Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddItem v AddListItem in Combo Boxes
Message
De
19/09/2000 10:55:13
 
 
À
19/09/2000 09:55:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00417981
Message ID:
00418063
Vues:
27
Cetin,

Many thanks for your reply, I've made a copy to I can have another play with AddListItem to try & understand it better.

However, in my control, I've set the following:

BoundColumn = 2
BountDo = .T.

I populate the control in its Init method:

WITH THIS.

SCAN
lnNewItemId = .NewItemId + 1

.AddListItem(v_PoolCars.cRegistration , lnNewItemId, 1)
.AddListItem(ALLTRIM(STR(v_PoolCars.nId)) , lnNewItemId, 2)
ENDSCAN
ENDWITH

The control source is a numeric field & the correct value is being stored. I changed the Id to be 5001 & 5002 in the table I'm using, so not to get confused with record or list numbers.

I'll have another toy with it & thanks again for your reply.

Andy Crawshaw
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform