![]() ![]() |
| Guest_Julie_* |
Nov 25 2003, 01:24 PM
Post
#1
|
|
Guests |
:'( given 2 strings of characters, how can you test whether the first string appears as a substring somewhere in the second, what are you supposed to do here?
|
|
|
|
Nov 26 2003, 04:03 PM
Post
#2
|
|
|
Active Member Group: Support Team Posts: 160 Joined: 3-January 03 From: Colorado Member No.: 353 ![]() |
You could use IndexOf
string1 = ob string2 = bob CODE int ImFound = string2.IndexOf(string1); ImFound would return -1 if it wasn't found, or the index value if it was |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 20th June 2013 - 11:27 PM |