Page 1 of 1

Problem with Strings and TVirtualDataSet

Posted: Wed 07 Apr 2021 10:47
by JimMellish
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.

Re: Problem with Strings and TVirtualDataSet

Posted: Mon 12 Apr 2021 05:26
by MaximG
Thank you for the information. We have reproduced the issue and will investigate its origin. We will inform you about the results shortly.

Re: Problem with Strings and TVirtualDataSet

Posted: Mon 19 Apr 2021 19:18
by leonardt.neugebauer
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.

Re: Problem with Strings and TVirtualDataSet

Posted: Mon 17 May 2021 13:51
by RosswinkelNico
Hello,
are there any news on this topic?
Our company faces exactly the same issue.
With kind regards

Re: Problem with Strings and TVirtualDataSet

Posted: Thu 02 Sep 2021 13:44
by MaximG
On 14-Jul-21 we released a new version that includes the changes you need