Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15571

[RESOLVED] Out Of Range Exception

$
0
0
Hi,

I don't understand what Intellisence is complaining about:
Code:

      Dim tmp As String = "2001: A Space Odyssey~Arthur C. Clarke"
      Dim ang As String = tmp.Substring(0, l2)

Quote:

System.ArgumentOutOfRangeException
Message=Length cannot be less than zero.
I just don't understand.


Poppa

Viewing all articles
Browse latest Browse all 15571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>