English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

int iPos= strSource.IndexOf(strToFind);

if ( iPos != -1 )
{
// found strToFind (which could be just a single character) inside strSource.
}

2006-12-08 18:04:06 · answer #1 · answered by TankAnswer 4 · 0 0

I believe it's IndexOf();

tempString.indexOf(character);

Returns -1 if it isn't in there anywhere.

2006-12-09 02:04:20 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers