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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement