Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > String Objects > indexOf() MethodThis method returns the position of the first occurrence of a substring in a string. stringVar.indexOf(substring [, offset]) ReturnsThe position of the first occurrence of a substring in a string variable. UsagestringVar.indexOf() searches the entire substring in a string variable. The substring parameter may be a single character. If offset is not given, searching starts at position 0. If it is given, searching starts at the specified position. var string = "what a string"; returns the position of the first var magicWord = "abracadabra"; returns 3, the index of the first NOTE: The indexOf() method is case-sensitive. See AlsocharAt() Method |
Siebel eScript Language Reference |