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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only