Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object String Methods > Clib.strstr() MethodThis method searches a string for the first occurrence of a second string. SyntaxClib.strstr(sourceString, findString) ReturnsThe string beginning at the first occurrence of findString in sourceString, continuing to the end of sourceString; otherwise, null, if findString is not found. UsageThis method searches sourceString, from its beginning, for the first occurrence of findString. The search is case-sensitive. If the desired result can be accomplished with the standard JavaScript substring() method, that method is preferred. Examplefunction Test1_Click () results in the following output: str = We have to go to Haverford See Also |
Siebel eScript Language Reference |