Format SElibpoke address data dataType Table 122 describes the arguments for

Format selibpoke address data datatype table 122

This preview shows page 211 - 214 out of 334 pages.

Format SElib.poke( address , data [, dataType ]) Table 122 describes the arguments for the Siebel Library Write Data method. Table 122. Arguments for the Siebel Library Write Data Method Argument Description address The starting address in memory where this method writes data.
Image of page 211
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference Custom Methods 212 Example The following example includes the Siebel Library Write Data method: TheApplication().TraceOn("c:\\eScript_trace.txt","allocation","all"); var v = new Buffer("Now"); // Collect "Now", the original value, for display. TheApplication().Trace(v); // Get the address of the first byte of v, "N" var vPtr = SElib.pointer(v); // Get the "N" var p = SElib.peek(vPtr); // Convert "N" to "P" SElib.poke(vPtr,p+2); // Display "Pow" TheApplication().Trace(v); TheApplication().TraceOff(); This example produces the following output: COMMENT,Now COMMENT,Pow Related Topics For more information, see the following topics: “Write BLOB Data Method” on page 108 “Clib Get Memory Method” on page 265 “Clib Read From File Method” on page 243 Custom Methods This topic describes custom methods. It includes the following topics: “Overview of Custom Methods” on page 213 “How the Constructor Function Creates an Object” on page 213 “How a Function Is Assigned to an Object” on page 214 “About Object Prototypes” on page 215 data The data that this method writes in memory. The data type of this data must match the type that you specify in the dataType argument. dataType For more information, see Table 121 on page 210 . Table 122. Arguments for the Siebel Library Write Data Method Argument Description
Image of page 212
Methods Reference Custom Methods Siebel eScript Language Reference Version 8.1, Rev. A 213 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 in which 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 You can use 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. How the Constructor Function Creates an Object A constructor function creates an object template. To create a rectangle object, the following example uses a constructor function: function Rectangle(width, height) { this.width = width; this.height = height; }
Image of page 213
Image of page 214

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