Assuming you're creating this string at run time, look at the upper limit count used in the loop to create that 2000 character string.
It takes less than a second to hit the 16,383 string length limit even when adding only 1 character at a time.
Where did you get the idea that a default value for a string is 255? ...
Ah-ha! After a little digging, the 255 limit comes into play with a direct translation of a integer into its equivalent character value using Chr(). By instead appending any single character - "A" - for example, you can get past this.
If you must have 2000 unique characters, Silk's double-byte version might support an extended Chr() limit.
[ 06-10-2003, 12:36 PM: Message edited by: John J. Miller ]