| | |
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 19 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 30minutes 2005 2008 access account arithmetic array basic binary bing button buttons center check code combobox component connectionstring crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dropdownlist excel fade file-dialog filter folder ftp generatetags google hardcopy images input insert intel internet mobile monitor ms net networking objects output panel passingparameters peertopeervideostreaming picturebox picturebox1 port position print printing problem problemwithinstallation project save searchbox searchvb.net select serial shutdown soap survey table tcp temperature text textbox timer timespan toolbox trim update updown user vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf year






