What is difference between String.Substring and MID function?

 Posted by Bhakti on 12/23/2009 | Category: VB.NET Interview questions | Views: 8980

Said both performs the same type of operation on string. The basic difference lies, how they indice the string characters.

In case, if you have got string "TEST", the MID function will indice the characters as 1,2,3,4. But with String.substring they will be indiced as 0,1,2,3.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response