TDBLookupComboBox cause an "EVariant Error" on ListSource that has index fields.
Original Reporter info from Mantis: Handoko
-
Reporter name: Handoko
Original Reporter info from Mantis: Handoko
- Reporter name: Handoko
Description:
I think it's a bug in TDBLookupComboBox.
- It won't happen on ListSource without index field.
- It won't happen on ListSource with one index field.
- It do happen on ListSource with 2 index fields.
Please try the source I've attached. The last DBLookupComboBox (which link to a indexed dbf as ListSource) causes an "EVariant Error" when you change the value.
=== Task.dbf ===
- TASKID string[15]
- USERID string[15]
- DESC string[40]
no indexes
=== User.dbf ===
- USERID string[15]
- USERNAME string[40]
no indexes
=== User_IDX.dbf === (the DBLookupComboBox will error if link to this file)
- USERID string[15]
- USERNAME string[40]
2 indexes (USERID, USERNAME)
Mantis conversion info:
- Mantis ID: 15451
- OS: win32
- OS Build: WinXP sp2
- Build: SVN 22279
- Platform: i386
- Version: 0.9.28.2
- Target version: 1.0.0
- LazTarget: 1.0