Error reading array field in Interbase table

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ArizmendiTeam
Posts: 10
Joined: Fri 13 Jul 2018 18:36

Error reading array field in Interbase table

Post by ArizmendiTeam » Thu 06 Sep 2018 17:01

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.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Error reading array field in Interbase table

Post by ViktorV » Fri 07 Sep 2018 07:15

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

Post Reply