Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Big problem, please help!
Message
 
To
18/04/1998 20:23:38
Raul Davila
Davila Programming Services
Toa Alta, Puerto Rico
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00093210
Message ID:
00093223
Views:
26
>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...
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform