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
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.
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.
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.
Followup question: is there a maximum size for the contents of a multilinebox dialog control?
is it at least 8192?
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.
excellent thanks.
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...
got it!