max characters of the type String
-
I every one, I want to know the maximum characters a String type can contain . 256 characters or more ? :)
Trankil wrote:
256 characters or more ?
More.
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
-
Trankil wrote:
256 characters or more ?
More.
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
-
I every one, I want to know the maximum characters a String type can contain . 256 characters or more ? :)
Since the String.Length property's type is Int32, it might be 2,147,483,647. Using large strings, can lead to a HEAP of trouble! -- modified at 17:58 Wednesday 15th March, 2006
-
Nemanja Trifunovic wrote:
More
:laugh: you couldn't answer more precisely on what the guy asked
-
I am feeling a little hate here! Nevertheless, the "prime directive" is to post your questions in the correct forum. However, we do need to use a little tact in informing someone of the "prime directive".
-
I am feeling a little hate here! Nevertheless, the "prime directive" is to post your questions in the correct forum. However, we do need to use a little tact in informing someone of the "prime directive".
No hate... And it wasn't directed at you, as your help is invaluable to me and to others I'm sure. Seems some just live to tell others they've posted in the wrong group. Group is quite, maybe we could just start posting the managed answer to whatever question was asked in addition to telling the OP the error of their ways. Cheers, Paul
-
No hate... And it wasn't directed at you, as your help is invaluable to me and to others I'm sure. Seems some just live to tell others they've posted in the wrong group. Group is quite, maybe we could just start posting the managed answer to whatever question was asked in addition to telling the OP the error of their ways. Cheers, Paul
I understand! I guess doing that is an easy way to increase your number of posts!
-
Trankil wrote:
256 characters or more ?
More.
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
-
Since the String.Length property's type is Int32, it might be 2,147,483,647. Using large strings, can lead to a HEAP of trouble! -- modified at 17:58 Wednesday 15th March, 2006
-
A 4096-character string wouldn't be a problem. You have a lot of room to work with? Just remember that the string-type does not mutate. Everytime you make a change, .NET creates a new instance with the change. There may be exceptions to this but a string is pretty much immutable. Of course, StringBuilder is mutable but it has its own overhead.