Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddItem v AddListItem in Combo Boxes
Message
From
19/09/2000 10:55:13
 
 
To
19/09/2000 09:55:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00417981
Message ID:
00418063
Views:
28
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
Map
View

Click here to load this message in the networking platform