Click here to Skip to main content
15,914,419 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Cleverest Code of the Day! Pin
F-ES Sitecore24-Jan-18 6:17
professionalF-ES Sitecore24-Jan-18 6:17 
GeneralRe: Cleverest Code of the Day! Pin
Z.C.M.24-Jan-18 7:54
professionalZ.C.M.24-Jan-18 7:54 
GeneralRe: Cleverest Code of the Day! Pin
Richard Deeming24-Jan-18 8:49
mveRichard Deeming24-Jan-18 8:49 
GeneralRe: Cleverest Code of the Day! Pin
Nish Nishant24-Jan-18 9:55
sitebuilderNish Nishant24-Jan-18 9:55 
GeneralRe: Cleverest Code of the Day! Pin
Richard Deeming25-Jan-18 8:45
mveRichard Deeming25-Jan-18 8:45 
GeneralRe: Cleverest Code of the Day! Pin
Nish Nishant25-Jan-18 8:56
sitebuilderNish Nishant25-Jan-18 8:56 
GeneralRe: Cleverest Code of the Day! Pin
den2k8825-Jan-18 2:43
professionalden2k8825-Jan-18 2:43 
GeneralRe: Cleverest Code of the Day! Pin
Richard Deeming25-Jan-18 8:50
mveRichard Deeming25-Jan-18 8:50 
Because that's how there were designed. Probably because that's how the Java version[^] works. Smile | :)

Specifying an index or a length outside of the string is usually a sign that something's gone wrong. In which case, it's better to have your application crash than for it to continue with potentially corrupted data.

If you don't like it, you can always add your own checks. Or roll your own "ignore-the-errors" wrappers. Or call the VB.NET methods[^].



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Cleverest Code of the Day! Pin
englebart25-Jan-18 2:02
professionalenglebart25-Jan-18 2:02 
GeneralRe: Cleverest Code of the Day! Pin
MSBassSinger25-Jan-18 7:41
professionalMSBassSinger25-Jan-18 7:41 
JokeRe: Cleverest Code of the Day! Pin
raddevus24-Jan-18 10:02
mvaraddevus24-Jan-18 10:02 
GeneralRe: Cleverest Code of the Day! Pin
Ehsan Sajjad24-Jan-18 18:57
professionalEhsan Sajjad24-Jan-18 18:57 
GeneralRe: Cleverest Code of the Day! Pin
Ehsan Sajjad26-Jan-18 0:42
professionalEhsan Sajjad26-Jan-18 0:42 
GeneralRe: Cleverest Code of the Day! Pin
kalberts24-Jan-18 23:18
kalberts24-Jan-18 23:18 
JokeRe: Cleverest Code of the Day! Pin
Ehsan Sajjad25-Jan-18 0:42
professionalEhsan Sajjad25-Jan-18 0:42 
GeneralRe: Cleverest Code of the Day! Pin
obermd25-Jan-18 3:14
obermd25-Jan-18 3:14 
GeneralRe: Cleverest Code of the Day! Pin
Ehsan Sajjad25-Jan-18 3:16
professionalEhsan Sajjad25-Jan-18 3:16 
GeneralRe: Cleverest Code of the Day! Pin
Gary Huck25-Jan-18 3:49
Gary Huck25-Jan-18 3:49 
GeneralRe: Cleverest Code of the Day! Pin
Ehsan Sajjad25-Jan-18 4:10
professionalEhsan Sajjad25-Jan-18 4:10 
GeneralRe: Cleverest Code of the Day! Pin
rnbergren25-Jan-18 4:14
rnbergren25-Jan-18 4:14 
GeneralRe: Cleverest Code of the Day! Pin
Ehsan Sajjad25-Jan-18 4:19
professionalEhsan Sajjad25-Jan-18 4:19 
GeneralRe: Cleverest Code of the Day! Pin
patbob25-Jan-18 5:42
patbob25-Jan-18 5:42 
GeneralRe: Cleverest Code of the Day! Pin
Ehsan Sajjad25-Jan-18 6:24
professionalEhsan Sajjad25-Jan-18 6:24 
GeneralRe: Cleverest Code of the Day! Pin
Gerry Schmitz25-Jan-18 9:22
mveGerry Schmitz25-Jan-18 9:22 
GeneralRe: Cleverest Code of the Day! Pin
James Lonero25-Jan-18 13:07
James Lonero25-Jan-18 13:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.