[Lazarus] DBGrid picklist error

Denis Golovan d.golovan.ml at gmail.com
Thu Jul 3 22:15:59 CEST 2008


On Thu, Jul 03, 2008 at 03:11:54PM -0400, Bob K. wrote:
> Anybody?         Please...

> When using a picklist for a table field that references another table, the list
> of entries shows in the picklist, but when an entry is selected and I attempt
> to move to another field the following error appears:
>  
> exception class 'EDatabaseError" with message:
> "Canon" is not a valid integer.
>  
> I understand that the entry should actually be an integer.  How can I display
> the selection, but capture the integer of the referenced table?
>  
> bob k.

  Use RxDBGrid for such lookups. Svn version is preferable
  http://wiki.lazarus.freepascal.org/RXfpc  

-- 
Best regards,
Denis Golovan aka MageSlayer



More information about the Lazarus mailing list