Siebel eScript Language Reference > Methods Reference > Custom Methods >

Overview of Custom Methods


You can group variables and functions together in one variable, and then reference them as a group. A compound variable of this sort is an object where each individual item of the object is a property.

An object property is similar to a variable or a constant. An object method is similar to a function. To reference an object property, you use the name of the object and the name of the property, separated by a period:

object name.property

You can write code that uses any valid variable name as a property name. The following example assigns values to the width and height properties of a rectangle object, calculates the area of a rectangle, and then displays the result:

var Rectangle;

Rectangle.height = 4;
Rectangle.width = 6;

TheApplication().RaiseErrorText(Rectangle.height * Rectangle.width);

An object allows you to work with groups of data in a consistent way. For example, instead of using a single object named Rectangle, you can use multiple Rectangle objects, where each of these objects includes a separate value for width and a separate value for height.

Siebel eScript Language Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.