View Single Post
  #4 (permalink)  
Old 01-02-2008, 12:45 PM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
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
__________________
If your ship has not come in yet then build a lighthouse.
Reply With Quote