Derek Smyth
Hello again,
The string class has a few methods that let you parse a string. There is also another piece of technology called regular expressions that let you do all sorts of clever things with strings. This is just for information, sometimes parsing strings with the methods of the string class can get messy, if your in that situation then regular expressions are the better option.
I think you meant remove the '-' from your string, which you can do with the replace method like this.
Code Snippet
myString.Replace("-", "") 'vb
myString.Replace('-', '') //c#
A string is basically a series of characters, an array of characters, each character of the string has an index so your string
Bis-wajit Ghosh has character indexes like this
012345678...
Index 0 = char B, index 1 = i, index 2 = s
So the substring method, as well as other string methods, use the index. So if you wanted wajit (before the - is removed) you would call
Code Snippet
'myString.Substring(index, length)
myString.Substring(4, 5)'gives you wajit (start at 4th character and take 5 characters)