I found a reference in a book listing the different C# data types (should be the same for VB.NET)
The book states that the range for System.String is from 0 to approximately 2 billion characters. So it appears that 2,147,483,648 is the max number of characters. I don't think I would reccomend initializing a string with that many characters :)
Einar
>>What is the maximum length of a string variable in VB.NET?
>
>Hmmm... not sure there is one. The largest string builder you can create would contain 2,147,483,648 characters. This is due to that being the max value of an Int32 which is what the constructor accepts for Capacity.
>
>Not sure if this helps you.
>
>BOb
Semper ubi sub ubi.