>>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...
Hi Garrett:
Tried that already but something weird happens.
Now .VALUE has waht I want but nothing shows in the combo, not just that but I can't navigate through the items using the keyboard.
When .BoundTo = .T. I can only choose an item using the mouse and even then the textbox part of the combo is empty.
I posted a better explained example in thread #
93227Thanks!
R. Davila
DBA / Network Administrator
Administracion de Fomento Comercial
Gobierno de Puerto Rico
Still waiting for FoxPro for LINUX