Click to See Complete Forum and Search --> : Instr Function in C#


FundooGuy
November 23rd, 2004, 03:36 AM
Hi frnds


I am a VB programmar and ive used instr function to get a location of a specific char. but i dont know wht should i use in C# bcoz Instr function is not available in C#.

Pls tell me

Thanx

darwen
November 23rd, 2004, 03:44 AM
I think IndexOf is the method you're looking for.

Darwen.

Andy Tacker
November 23rd, 2004, 03:45 AM
yourstring.Indexof("char");