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.

Title: Re: reportview cell limit?
Post by: td on September 23, 2025, 08:38:20 AM
8182 X 2 bytes (x 2 for Unicode) has the potential to cause problems in 32-bit WinBatch because of string space limits. Not so much on 64-bit WinBatch because it has more memory set aside for strings.

The feedback is appreciated, and we will test the side effects of a limit of that size.
Title: Re: reportview cell limit?
Post by: kdmoyers on November 04, 2025, 11:58:12 AM
Followup question: is there a maximum size for the contents of a multilinebox dialog control?
is it at least 8192?
Title: Re: reportview cell limit?
Post by: td on November 04, 2025, 01:14:57 PM
WinBatch does not set a limit, although you will eventually run out of string space. Total string space for 32-bit WinBatch is 262,144,000 bytes, but WIL makes multiple copies of strings, so divide that number by about 4 to account for copies.
Title: Re: reportview cell limit?
Post by: kdmoyers on November 04, 2025, 01:26:25 PM
excellent thanks.
Title: Re: reportview cell limit?
Post by: td on November 04, 2025, 02:24:46 PM
I take it all back, while it is true that WinBatch does not set a limit Windows does. It is 32,767 characters. Completely forgot about that part...
Title: Re: reportview cell limit?
Post by: kdmoyers on November 06, 2025, 03:25:21 AM
got it!