Page 1 of 1

Error reading array field in Interbase table

Posted: Thu 06 Sep 2018 17:01
by ArizmendiTeam
Hi, I'm testing tables with Array fields.
The components that I am using are TIBCTable and are related to Interbase tables. In one of those tables I defined an Integer Array [1: 3] field (Ex: Test). In the validation code when trying to get the value of the field I use the following code:

TableName.FieldByName ('Test [1]'). AsInteger

In this link ...

viewtopic.php?t=30195

... verify that it was defined in this way.

And it gives me the message that the field does not find (I did the same test with Test [0] and it gave me the same error). Can I get the value of each element of the array field ?.

I am using Delphi Tokyo 10.2
The version of Devart is 6.2.8

Thank you in advance.

Re: Error reading array field in Interbase table

Posted: Fri 07 Sep 2018 07:15
by ViktorV
You can get access to the array element value using the specified code. Only, please make sure that the TIBCTable.Active property is set to True.
If this does not help in resolving the problem, please compose a small sample demonstrating the issue including the script for creating and filling in the database objects and send it to us via the e-support form: https://devart.com/company/contactform.html