B Brad Markisohn Nov 10, 2004 #1 Is there a C# equivalent to VB's instr function to determine if the contents of one string are present in another? Brad
Is there a C# equivalent to VB's instr function to determine if the contents of one string are present in another? Brad
J Jim Hughes Nov 10, 2004 #3 Use the IndexOf method of the String class String str = "longstring"; Int32 i = str.IndexOf("string"); In this case, i = 4.
Use the IndexOf method of the String class String str = "longstring"; Int32 i = str.IndexOf("string"); In this case, i = 4.
B Brad Markisohn Nov 10, 2004 #4 Thanks. That's just what I needed. Brad Jim Hughes said: Use the IndexOf method of the String class String str = "longstring"; Int32 i = str.IndexOf("string"); In this case, i = 4. Click to expand...
Thanks. That's just what I needed. Brad Jim Hughes said: Use the IndexOf method of the String class String str = "longstring"; Int32 i = str.IndexOf("string"); In this case, i = 4. Click to expand...