Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel eScript Language Reference > C Language Library Reference > Clib String Methods > Clib Get Substring MethodThe Clib Get Substring method searches a string for the first occurrence of a string. It returns one of the following values:
It searches the string that you specify in the sourceString argument from the beginning of this string. It is recommended that use the Clib Get Substring method only if you cannot use the equivalent standard JavaScript method. FormatClib.strstr(sourceString, findString) You can use one of the following:
Table 157 describes the arguments for the Clib Get Substring method. Example 1The following example uses Clib.strstr: function Test1_Click () This example provides the following result: str = We have to go to Haverford Example 2The following example uses Clib.strstri: function Test_Click () This example provides the following result: str = We have to go to Haverford. Related TopicsFor more information, see Create String From Substring Method. |
![]() ![]() |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |