TIBCTable: EVariantBadVarTypeError
Posted: Fri 08 Jul 2022 13:39
In the attachment you will find a full example project. Just open Project1.dpr and hit compile. It contains an embedded firebird client (\Win32\Debug\Firebird) and my test database (\Win32\Debug\test.fdb)
If I hit the button "Insert Record 1" a record is inserted. Everything is OK. But if I hit now button "Insert Record 2" to insert another record an exception is shown:
EVariantBadVarTypeError: 'Invalid variant type'
If you click at "Insert Record __2__" first and then at "Insert Record __1__" it works. That makes no sense.
My application needs this options:
SetEmptyStrToNull=true
UpdateAllFiels=false
These options are set and can't be changed.
The first button adds an record with a reference to another table (field ArtikelNr). The second button adds a record without this reference. But the strange thing is, that the other fields may play a role too.
Thanks for your help!
Now I've written this text, but how to attach a file to my forum post?
If I hit the button "Insert Record 1" a record is inserted. Everything is OK. But if I hit now button "Insert Record 2" to insert another record an exception is shown:
EVariantBadVarTypeError: 'Invalid variant type'
If you click at "Insert Record __2__" first and then at "Insert Record __1__" it works. That makes no sense.
My application needs this options:
SetEmptyStrToNull=true
UpdateAllFiels=false
These options are set and can't be changed.
The first button adds an record with a reference to another table (field ArtikelNr). The second button adds a record without this reference. But the strange thing is, that the other fields may play a role too.
Thanks for your help!
Now I've written this text, but how to attach a file to my forum post?