Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > String Objects > lastIndexOf() MethodThis method finds the position of the last occurrence of a substring in a string. SyntaxstringVar.indexOf(substring [, offset]) ReturnsThe position of the last occurrence of a substring in a string variable. UsageThe stringVar.lastIndexOf() function searches the entire substring in a string variable. The substring parameter may be a single character. If offset is given, searching starts at the indicated position. If it is not given, searching starts at the end of the string. var string = "what a string"; returns the position of the last var magicWord = "abracadabra"; returns 1, the index of the first See AlsocharAt() Method |
Siebel eScript Language Reference |