Whats wrong with this ?

Posted by Vibin Jith on Stack Overflow See other posts from Stack Overflow or by Vibin Jith
Published on 2010-04-01T07:29:54Z Indexed on 2010/04/01 7:33 UTC
Read the original article Hit count: 366

Filed under:
 dim dataType as String
  toolTip="Marks And Number[String]"

I want to get the [String] alone.

  dataType = toolTipText.Substring(toolTipText.IndexOf("[") + 1, toolTipText.IndexOf("]") - 1)

it shows an error. Regarding the length of the string.

What's wrong with my code.I dont know , Some times I have these type of problems . Standing with simple loops or conditions .

© Stack Overflow or respective owner

Related posts about vb.net