Check out the String object's IndexOf method. It works something like this: int32 i = myString.IndexOf("abc") which returns the location of abc in myString. There are other overloads for various situations. Don
Don Kiely, MCP, MCSD
In the Last Frontier, Interior Alaska
Please post questions and replies to the forum! And remember to MARK AS ANSWER when someone definitively answers a question or resolves a problem!
R03
Member
455 Points
91 Posts
Is there anything similar to Instr() VB method in C#?
Nov 03, 2003 06:09 PM|LINK
donkiely
All-Star
15929 Points
2518 Posts
ASPInsiders
Moderator
MVP
Re: Is there anything similar to Instr() VB method in C#?
Nov 03, 2003 06:15 PM|LINK
In the Last Frontier, Interior Alaska
Please post questions and replies to the forum! And remember to MARK AS ANSWER when someone definitively answers a question or resolves a problem!
R03
Member
455 Points
91 Posts
Re: Is there anything similar to Instr() VB method in C#?
Nov 03, 2003 06:37 PM|LINK