string???

cjaymcmeans

Well-known member
Joined
Jan 12, 2005
Messages
85
Programming Experience
3-5
hi..
anyone know whats the max length of the string data type...
or anybody can give me a suggestion as to what type am i gona use to accomodate some thing like 3200 chars max... tnx...
 

Paszt

Staff member
Joined
Jun 3, 2004
Messages
1,500
Location
Raleigh, NC - USA
Programming Experience
Beginner
The string type can easilly handle 3200 characters. I'm not sure what the maximum capacity is though.
I would suggest using the StringBuilder Class to handle such a lengthy string. The StringBuilder, if used correctly, can help preserve system resources and is much quicker than the String type. See this article for an explanation: Preserve system resources when working with .NET strings
 

cjaymcmeans

Well-known member
Joined
Jan 12, 2005
Messages
85
Programming Experience
3-5
ok tnx.. one problem though..
i dont know how to use a string builder class...
:D
can you give me some pointers...
tnx...
 

Paszt

Staff member
Joined
Jun 3, 2004
Messages
1,500
Location
Raleigh, NC - USA
Programming Experience
Beginner
The link to the article in my last post gives some very useful code samples and explanations.
 
Top Bottom