Phxtecno Posted August 19, 2015 Share Posted August 19, 2015 Hello, when I try a record insert, using uniDBLookupComboBox on a integer field, I get always the error "Could not convert variant of type (unicodeString) into type (Boolean)" If in place i use a simple DbEdit no exception raises. No exceptions also when I use the uniDBLookupComboBox to Update a record where the field has already a value. It happens with or without setting a Default value for the underlying DB field. In my application I have other uniDBLookupComboBox on some forms, but realized this problem only when I started to use it for record Insert. Any idea ? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 19, 2015 Administrators Share Posted August 19, 2015 Hi, It looks like a generic Delphi issue. I need more details. How your DBLookup is configured? Quote Link to comment Share on other sites More sharing options...
Phxtecno Posted August 19, 2015 Author Share Posted August 19, 2015 I leaved default values except of course for Datasource, Datafield and Listsource, Listfield and keyfield. Lookup KeyField is an integer (Firebird), as the receiving Datafield. Quote Link to comment Share on other sites More sharing options...
Phxtecno Posted August 19, 2015 Author Share Posted August 19, 2015 Here is a test project with a firebird DB and just 2 tables, main and lookup. Problem arise when I try to insert a new record. test1.zip Quote Link to comment Share on other sites More sharing options...
Phxtecno Posted August 25, 2015 Author Share Posted August 25, 2015 Hi Farshad, had you opportunity to check this example ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.