Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel eScript Language Reference > Methods Reference > String Methods > Search String for Substring MethodThe Search String for Substring method searches the stringVar variable for the entire string that you specify in the substring argument. It returns the position of the first occurrence of this string. If any of the following situations is true, then it returns a value of negative 1:
Values you enter for arguments are case-sensitive. FormatstringVar.indexOf(substring [, offset]) Table 43 describes the arguments for the Search String for Substring method. Example 1The following example returns the position of the first a character that occurs in the string. In this example, the first a character occurs at position 2: var string = "what a string"; Example 2The following example returns 3, which is the position of the first a character in the string when starting from the second character of the string: var magicWord = "abracadabra"; Related Topics |
![]() |
![]() ![]() |
Siebel eScript Language Reference | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |