sputnik75043
Member
- Joined
- Aug 28, 2010
- Messages
- 13
- Programming Experience
- Beginner
I'm trying to remove the HTML comment tags from a selected string and I'm getting an error....
Let's say I have a selected string:
<!--This is my string-->
selText is my variable for the entire selected string - my code is:
The error is :
Index and length must refer to a location within the string.
Parameter name: length
What's wrong here?
Let's say I have a selected string:
<!--This is my string-->
selText is my variable for the entire selected string - my code is:
VB.NET:
selText = selText.Substring(4, selText.Length - 3)
The error is :
Index and length must refer to a location within the string.
Parameter name: length
What's wrong here?