If MsgBox("Pg-Ref (or) cross-ref tagged without ref-group tag" & vbCrLf & vbCrLf & "Hint=>" & sHint & vbCrLf & vbCrLf & "Are you sure to close?", vbYesNo) = vbNo Then Exit Sub End If
string msg = "abcdefghijklm..."; int index = msg.IndexOf("fghi"); // the value is 5 in this case //if the word dont exsist, you will get an exception so better test if the word exsist before getting the index. if(msg.IndexOf("fghi") != -1) { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)