Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maximum length of a string variable
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
00974763
Message ID:
00979045
Views:
17
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform