| | |
String length problem
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2009
Posts: 2
Reputation:
Solved Threads: 0
I understood that a string in VB .Net maximum length was quite large (could be way over 1000 characters) but do not know for sure. I keep having a problem when I concatenate one string to another and the result is the second string.
Example:
Str1 = “this is the first test”
Str1 &= “this is the second test”
Now Str1 = “this is the second test”
The lengths of the strings in the example are not correct (much longer) but are under 1000 characters. Does anyone have a clue?
Example:
Str1 = “this is the first test”
Str1 &= “this is the second test”
Now Str1 = “this is the second test”
The lengths of the strings in the example are not correct (much longer) but are under 1000 characters. Does anyone have a clue?
0
#3 18 Days Ago
The theoretical limit may be 2,147,483,647, but the practical limit is nowhere near that. Since no single object in a .Net program may be over 2GB and the string type uses unicode (2 bytes for each character), the best you could do is 1,073,741,823, but you're not likely to ever be able to allocate that on a 32-bit machine.
Failure is not fatal, but failure to change might be. - John Wooden
![]() |
Similar Threads
- char** for string array problem (C)
- Linked List: Mp3 Menu (String and Delete problem) (C++)
- How to Converty Binary String of Length 1024 to Decimal Number (C)
- String problem (C++)
- Problem in String Search:Please Help (C)
Other Threads in the VB.NET Forum
- Previous Thread: Web Browser Help.
- Next Thread: ContextMenuStrip
| Thread Tools | Search this Thread |
.net .net2008 2005 2008 access account array basic beginner bing browser button buttons center check code crystalreport cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic dropdownlist excel fade file-dialog filter forms ftp generatetags google hardcopy html images input insert intel internet mobile monitor ms net networking objects open output panel passingparameters pdf picturebox picturebox1 port position print printing problem save searchbox searchvb.net select serial settings shutdown soap sqlserver survey table tcp temperature text textbox timer timespan toolbox transparency trim update user vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode year






