By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,168 Members | 2,598 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,168 IT Pros & Developers. It's quick & easy.

vb.net Length in string is not correct.

P: 1
I am getting crazy with this!

i am copying from immediate window:

?strCODELINE
"+ 1<GR2207305040000000002635031> 240412<001027298+ >100>"

?strCODELINE.Length
57

?"+ 1<GR2207305040000000002635031> 240412<001027298+ >100>".Length
56

Why is this happening? My string has 56 characters length, but when i am running strCODELINE.Length it returns 57? Could someone please explain me why is this happening?
Oct 11 '12 #1
Share this Question
Share on Google+
1 Reply


P: 1
Well, I never seen it...
Try to create a blank app. If it isn't work you can use:
strCODELINE.Length + 1
Oct 16 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.