Problem with Strings and TVirtualDataSet

Discussion of open issues, suggestions and bugs regarding Virtual Data Access Components for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
JimMellish
Posts: 8
Joined: Wed 06 Mar 2013 21:48

Problem with Strings and TVirtualDataSet

Post by JimMellish » Wed 07 Apr 2021 10:47

When trying to work with guids represented as strings I came across the following problem.

If a string field in a TVirtualDataset is defined as having a size of, say, 38, then when the string field displays a string of length 38 the last character is shown as an unprintable character.

To reproduce this open the virtual dataset demo. On line 156 the DeptDataSet field DName has a size of 14.

On line 130 change
DeptList.Add(TDept.Create(10, 'ACCOUNTING', 'NEW YORK'));
to
DeptList.Add(TDept.Create(10, 'ACCOUNTING1234', 'NEW YORK'));

so the length of the string to be displayed is now 14 characters.

Run the program. Expand the DName column and inspect the last character displayed.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Problem with Strings and TVirtualDataSet

Post by MaximG » Mon 12 Apr 2021 05:26

Thank you for the information. We have reproduced the issue and will investigate its origin. We will inform you about the results shortly.

leonardt.neugebauer
Posts: 32
Joined: Wed 27 May 2020 06:22

Re: Problem with Strings and TVirtualDataSet

Post by leonardt.neugebauer » Mon 19 Apr 2021 19:18

I have a similar problem see:
https://forums.devart.com/viewtopic.php?f=28&t=45241
I have just noticed that I have probably created under the wrong category. if you want you can move it.

RosswinkelNico
Posts: 1
Joined: Mon 17 May 2021 13:48

Re: Problem with Strings and TVirtualDataSet

Post by RosswinkelNico » Mon 17 May 2021 13:51

Hello,
are there any news on this topic?
Our company faces exactly the same issue.
With kind regards

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Problem with Strings and TVirtualDataSet

Post by MaximG » Thu 02 Sep 2021 13:44

On 14-Jul-21 we released a new version that includes the changes you need

Post Reply