An object inherits all the properties of the objects in the ancestral chain of

An object inherits all the properties of the objects

This preview shows page 21 - 24 out of 334 pages.

You can configure Siebel eScript to add properties dynamically to an object. An object inherits all the properties of the objects in the ancestral chain of the object. The object type known as Object is a generic object type. If you declare an object as an Object type, then it does not inherit properties from any object. For more information, see “Use a Primitive Data Type Instead of an Object Data Type” on page 57 . Boolean Data Type The value of a Boolean object is a bool value, which is true or false. It is a property of the Boolean object. If you use a Boolean variable in a numeric context, then Siebel eScript does the following conversion: If the value of a bool variable is true, then it converts this value to 1. If the value of a bool variable is false, then it converts this value to 0. To create a Boolean object, you use the Boolean constructor in the type of expression: new String Data Type The string value is a chars value. Siebel eScript adds it as a property of the String object. A pair of double or single quotation marks brackets a string. For example: "I am a string" 'so am I' "344"
Image of page 21
Siebel eScript Language Reference Version 8.1, Rev. A About Siebel eScript About Data Types and Numbers 22 In this example, the 344 string is an array of characters. The number 344 is a value that Siebel eScript can use in a numeric calculation. To create a string data type, you use the String constructor in the following type of expression: new Siebel eScript does one of the following, depending on the context: Converts a string to a number Converts a number to a string For more information, see “How Siebel eScript Converts Data Types” on page 24 . Number Data Type The value of a number is a float value. It is a property of the Number object. To create a number object, you use the Number constructor in the following type of expression: new For more information, see “About Numbers” on page 26 . Array Data Type An array is a series of data that Siebel eScript stores in a variable. Each datum is associated with an index number or string. The following example illustrates how Siebel eScript stores data in an array: var Test = new Array; Test[0] = "one"; Test[1] = "two"; Test[2] = "three"; In this example, the Test variable is an array that includes three strings. You can use an array variable as one unit. To reference a string individually, you can append the bracketed index of the element after the array name. To reference a property: An array uses an index. An object uses a property name or a method name. For more information, see “Array Methods” on page 78 . Null Data Type The null object indicates that a variable is empty. It does not contain a value, although it might have previously contained a value. The following term identifies a null data type: null The following keyword allows you to compare a value to a null object: null
Image of page 22
About Siebel eScript About Data Types and Numbers Siebel eScript Language Reference Version 8.1, Rev. A 23 Null has a literal representation. The following example is valid: var test = null; Siebel eScript can compare any variable that contains a null value to a null literal.
Image of page 23
Image of page 24

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

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes