Between the value that the beginning argument contains and the value that the

Between the value that the beginning argument

This preview shows page 115 - 119 out of 334 pages.

Between the value that the beginning argument contains and the value that the end argument contains. Sets the cursor position to a new relative position in the new buffer. Before the value that the beginning argument contains. Sets the cursor position to 0 in the new buffer. After the value that the end argument contains. Sets the cursor position to the end of the new buffer.
Image of page 115
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference Buffer Methods 116 Siebel CRM does this to distinguish an error message that the RaiseErrorText method or the RaiseError method creates from an error that the Siebel Run-Time Engine creates or that the Throw statement creates. Example The following example uses the Get Buffer Data method: try { do_something; } catch( e ) { TheApplication().RaiseErrorText(Clib.rsprintf( "Something bad happened: %s\n",e.toString())); } Get Cursor Position Value From Buffer Method The Get Cursor Position Value From Buffer method returns the value that a position contains from a buffer. This position is the position on which the cursor currently resides. To determine where to read from the buffer, you can use the Cursor property. For more information, see “Cursor Position in Buffer Property” on page 122 . Format bufferVar .getValue([ valueSize ][ , valueType ])
Image of page 116
Methods Reference Buffer Methods Siebel eScript Language Reference Version 8.1, Rev. A 117 Table 55 describes the arguments for the Get Cursor Position Value From Buffer method. Values You Can Use with the ValueSize and ValueType Arguments Table 56 describes the value combinations you can use with the valueSize argument and the valueType argument. The values of the valueSize argument and the valueType argument must match the structure of the data that the Get Cursor Position Value From Buffer method reads. Any other combination causes an error. Table 55. Arguments for the Get Cursor Position Value From Buffer Method Argument Description valueSize A positive number that describes the number of bytes that the this method reads. You can use any of the following values: 1 2 3 4 8 10 The default value is 1. These values must not conflict with any values you use with the valueType argument. For more information, see “Values You Can Use with the ValueSize and ValueType Arguments” on page 117 . valueType The type of data that the this method reads. You can use one of the following values: Signed Unsigned Float Signed is the default value. Table 56. Value Combinations You Can Use with Arguments of the Get Cursor Position Value From Buffer Method Value in the valueSize Argument Value in the valueType Argument 1 signed, unsigned 2 signed, unsigned 3 signed, unsigned
Image of page 117
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference Buffer Methods 118 Get String From Buffer Method The Get String From Buffer method returns a string that starts at the current cursor position in a buffer and continues for the number of bytes that you specify in the length argument. It reads the string according to the value of the unicode flag of the buffer. It does not add a terminating null byte
Image of page 118
Image of page 119

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