I have got below function in VBSCript. How can this be writtern in C#.
Dim Title 'As String Function getNavID(Title) getNavID=UCase(Left(Title, InStr(Title, ". ") -1)) End Function
public string getNavID(string Title) { var index = Title.IndexOf(". "); return Title.Substring(0, index -1).ToUpper(); }
1.4m articles
1.4m replys
5 comments
57.0k users