|
-
Mar 29th, 2000, 12:06 AM
#1
Thread Starter
New Member
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?
-
Mar 29th, 2000, 01:40 AM
#2
Lively Member
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.
-
Mar 29th, 2000, 03:56 AM
#3
transcendental analytic
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
-
Mar 29th, 2000, 04:25 AM
#4
Frenzied Member
Text boxes are limited to 64K. Search MSDN for "Control Limitations"
-
Mar 31st, 2000, 08:19 AM
#5
Thread Starter
New Member
That's why. I was putting it into a regular textbox. Thanks a lot.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|