2 Uses the following function to sort the numbers compareNumbersa b In this

2 uses the following function to sort the numbers

This preview shows page 89 - 91 out of 334 pages.

2 Uses the following function to sort the numbers: compareNumbers(a, b) In this function, if a and b are two array elements that Siebel eScript compares, then Siebel eScript does the following: If compareNumbers(a, b) is less than zero, then it gives b a lower index than a. If compareNumbers(a, b) returns zero, then it does not change the order of a and b. If compareNumbers(a, b) is greater than zero, then it gives b a higher index than a. String Methods This topic describes string methods. It includes the following topics: “Overview of String Methods” on page 89 “Change String to Lowercase Method” on page 91 “Change String to Uppercase Method” on page 91 “Create String From Substring Method” on page 92 “Create String From Unicode Values Method” on page 92 “Get Character From String Method” on page 93 “Get Unicode Character From String Method” on page 94 “Get Regular Expression From StringVar Method” on page 95 “Get String Length Method” on page 97 “Parse String Method” on page 98 “Replace String Method” on page 99 “Search String for Substring Method” on page 101 “Search String for Last Substring Method” on page 102 “Search StringVar for Regular Expression Method” on page 103 Overview of String Methods The value property of a string object describes a sequence of text characters. In this topic, the term string represents the value of an instance of the string object. Other properties of the string object describe the string value and methods of the string object that manipulate the string value. To indicate that a text literal is a string, you enclose it with quotation marks. In the following example, the first statement places the hello string in the word variable. The second statement sets the word variable to have the same value as the hello variable:
Image of page 89
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference String Methods 90 var word = "hello"; word = hello; To declare a string you can use single quotes instead of double quotes. There is no difference between the two in Siebel eScript. This topic uses the following formats: stringVar. Indicates a string variable. To use a property or to call a method, a specific instance of a variable must precede the period. String name. Indicates a static method of the string object. It does not apply to a specific instance of the string object. How Siebel eScript Handles Special Characters In a String A quotation mark is an example of a special character. To use a special character in a string, you must use a specific combination of characters that represent the special character. This combination allows Siebel CRM to understand how you intend it to use the character. For example, a quotation mark that is part of a string or a quotation mark that marks the end of the string.
Image of page 90
Image of page 91

You've reached the end of your free preview.

Want to read all 334 pages?

  • Summer '16
  • Oracle
  • Type system, Siebel, Siebel eScript

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors