I need to use a public variable length string (up to about a million characters long), but whenever I fill it past the fixed-length limit (68k characters), VB crashes. Any advice?
Printable View
I need to use a public variable length string (up to about a million characters long), but whenever I fill it past the fixed-length limit (68k characters), VB crashes. Any advice?
Hello,
I have a few suggestions that may/may not help.
How about trying to create an array of variable length strings, once you have reach the limit on one of the strings move over to the next string.
You could try writing the data to some control like a rich text box which I beleive has a much much higher charater limit that an ordinary string.
How about storing some of the string in a file and just use that like a ordinary string.
Anyway I'm out of ideas, hope some of them help you,
Desire.
Just a comment: Richtextboxes use variable-length String, not fixed length. How did you declare your string?
Dim a as String (variable-length) 10 bytes + string length 0 to approximately 2 billion
Dim a as String*65535 (fixed-length) Length of string 1 to approximately 65,400
Text boxes are limited to 64K. Search MSDN for "Control Limitations"
That's why. I was putting it into a regular textbox. Thanks a lot.