WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: kdmoyers on September 22, 2025, 06:03:37 AM

Title: reportview cell limit?
Post by: kdmoyers on September 22, 2025, 06:03:37 AM
when doing
dialogcontrolset(  DH, "bigrv", @dccontents,  arr)

I'm suddenly getting error 3053 character string too long (>2048 char)

Now that whole arr array is WAY bigger than 2048 all the time, so I'm thinking it's just one cell.
So I trim the suspect cell to 2048 and sure enough the problem goes away.

QUESTION: is that it? no cell in a reportview can have >2048 chars? 
If so, that's OK, I just need to know for sure.

-Kirby
Title: Re: reportview cell limit?
Post by: td on September 22, 2025, 08:55:38 AM
Yes, that is it. I think it is documented somewhere in the documentation, but I can't find it. Maybe it is wishful thinking.

Anyway, the Dialog function is currently receiving some minor tweaks, so perhaps we could expand the limit a bit. Modern systems are equipped with more physical memory, and the WIL string table has expanded since the field limit was initially set.
Title: Re: reportview cell limit?
Post by: kdmoyers on September 22, 2025, 10:45:02 AM
Thanks Tony.

To be sure, I don't actually need to display that much text in the reportview. 

I got in trouble because I was using the same array I used for other data operations to also load the reportview, because I am lazy.

It was easy enough to work around: make a copy of the array, with the problem column clipped off at 2048, then use the copy to load the reportview, then throw the copy away.


If you raise the limit, I request at least 8192, to cover typical varchar columns.