Search Text For Your Name


#1


#2

your name is not present in text string, so it can't be found

also, your if condition. You loop over over text to see if the current character in text string equals the first letter of myName. So not sure why you would use myName[i].


#3

Name is present in text string. Your second point is not clear.


#4

well, you want to find the first letter of your name in text string

but i value changes, so it can't be used to get first letter of myName


#5

Strongly dislike solutions such as this but w/e


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.