A
ad
There are InStr in VB
What is the C# equivelant of the function InStr in VB?
----------------------------------------------------------------------------
------------------
SearchString ="XXpXXpXXPXXP" ' String to search in.
SearchChar = "P" ' Search for "P".
' Comparison is binary by default (last argument is omitted).
MyPos = InStr(SearchString, SearchChar) ' Returns 9.
What is the C# equivelant of the function InStr in VB?
----------------------------------------------------------------------------
------------------
SearchString ="XXpXXpXXPXXP" ' String to search in.
SearchChar = "P" ' Search for "P".
' Comparison is binary by default (last argument is omitted).
MyPos = InStr(SearchString, SearchChar) ' Returns 9.