Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object Uncategorized Methods > Clib.bsearch() MethodThis method looks for an array variable that matches a specified item. SyntaxClib.bsearch(key, arrayToSort, [elementCount,] compareFunction) ReturnsAn array variable that matches key, returning the variable if found, null if not. UsageClib.bsearch() searches only through array elements with a positive index; array elements with negative indices are ignored. The compareFunction value must receive the key variable as its first parameter and a variable from the array as its second parameter. If elementCount is not supplied, then the function searches the entire array. ExampleThe following example demonstrates the use of Clib.qsort() and Clib.bsearch() to locate a name and related item in a list: (general) (ListCompareFunction) (general) (DoListSearch) See Also |
Siebel eScript Language Reference |