View Single Post
  #6 (permalink)  
Old 01-02-2008, 07:54 PM
CaptainMorgan's Avatar
CaptainMorgan CaptainMorgan is offline
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Quote:
Originally Posted by tim View Post
Hello, ravian.

The substring method is a funny one. The way that I understand is that the first parameter has zero-based indexing and the second has one-based indexing. For example:

first parameter:____00 01 02 03 04 05 06 07 08 09 10 11 12
second parameter:___01 02 03 04 05 06 07 08 09 10 11 12 13
string:_____________W__e__l__c__o__m__e__T__o__J__a__v__a
Very interesting Tim... I learned something new today, seriously.
Reply With Quote