Table 35 lists the character combinations that represent special characters You

Table 35 lists the character combinations that

This preview shows page 90 - 93 out of 334 pages.

Table 35 lists the character combinations that represent special characters. You cannot use these character combinations in a string that is enclosed by back quotes. For more information, see “Back Quote Usage in a String” on page 91 . Table 35. Character Combinations That Represent Special Characters Character Combination Special Character That the Character Combination Represents \a Audible bell. \b Backspace. \f Form feed. \n Newline. \r Carriage return. \t Tab. \v Vertical tab. \’ Single quote. \” Double quote. \\ Backslash character. \0### Octal number. For example: '\033' is the octal number. \x## Hex number. For example: '\x1B' is the hex number. \0 Null character. For example: '\0' is the null character. \u#### Unicode number. For example: '\u001B' is the Unicode number.
Image of page 90
Methods Reference String Methods Siebel eScript Language Reference Version 8.1, Rev. A 91 Back Quote Usage in a String To configure Siebel eScript to not translate a character combination that typically represents a special character, you can use the following back quote: ` If you use the back quote, then Siebel eScript interprets the character combination as a part of the string. For example, the following code lines illustrate different ways to reference a file name: "c:\\autoexec.bat" // traditional C method 'c:\\autoexec.bat' // traditional C method `c:\autoexec.bat' // alternative Siebel eScript method If a string includes a back quote, then you cannot include a special character that is represented by a back slash followed by a letter in that string. For example, \n. Most versions of JavaScript do not support a string that includes a back quote. If you plan to use your script in some form of JavaScript other than Siebel eScript, then do not use back quotes. Change String to Lowercase Method The Change String to Lowercase method changes every character that resides in the stringVar variable that is in uppercase to the lowercase equivalent. It returns a copy of this string that includes all lowercase characters. Format stringVar .toLowerCase() Example The following example assigns the value e. e. cummings to the variable poet: var poet = "E. E. Cummings"; poet = poet.toLowerCase(); Change String to Uppercase Method The Change String to Uppercase method changes every character that resides in the stringVar variable that is in lowercase to the uppercase equivalent. It returns a copy of this string that includes all uppercase characters. Format stringVar .toUpperCase() Example The following example accepts a file name as input and displays it in uppercase:
Image of page 91
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference String Methods 92 var filename = "c:\\temp\\trace.txt";; TheApplication().RaiseErrorText("The filename in uppercase is " +filename.toUpperCase()); Create String From Substring Method The Create String From Substring method returns a new string. Note the following: This string includes characters that the stringVar variable contains according to the start position and the end position that you specify.
Image of page 92
Image of page 93

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