Search Text For Your Name



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].


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


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


Strongly dislike solutions such as this but w/e


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