Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximum length of a string variable
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
00974763
Message ID:
00979045
Vues:
16
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform