7Siebel eScript Quick Reference
Siebel eScript Quick Reference
This chapter describes summary information for Siebel eScript methods and properties. It includes the following topics:
File and Directory Methods
This topic describes file and directory methods.
File Manipulation Methods
The following table describes file control methods.
Method | Description |
---|---|
Closes an open file. |
|
Creates a temporary file. |
|
Gets a temporary file name. |
|
Deletes a file. |
|
Handles file locking and unlocking. |
|
Opens a file. |
|
Renames a file. |
|
Reopens a file. |
File Manipulation Methods
The following table describes file manipulation methods.
Method | Description |
---|---|
Writes to disk the data that exists in the buffer, and then clears the buffer. |
|
Determines if the file cursor is at the end of the file. |
|
Gets a character from the buffer. |
|
Gets a string that includes characters from the cursor to the next newline character. |
|
Gets the current position of the file cursor. |
|
Gets the position of the file cursor relative to the beginning of the file. |
|
Moves the file cursor to the beginning of a file. |
|
Reads data from a file. |
|
Sets the current file cursor to a position that you specify. |
|
Reads input from an input device and stores the data in arguments. |
|
Sets the cursor position in a file. |
|
Pushes a character back to a file. |
|
Writes a character to a file. |
|
Writes a formatted string to a file. |
|
Writes a string to a file. |
|
Writes data to a file. |
Directory Manipulation Methods
The following table describes directory methods.
Method | Description |
---|---|
Changes directory. |
|
Creates a directory. |
|
Gets the current working directory. |
|
Removes a directory. |
String Methods
The following table describes string and byte array methods.
Method | Description |
---|---|
Converts a string to lowercase. |
|
Converts a string to uppercase. |
|
Concatenates a portion of one string to another string. |
|
Performs a comparison between two strings. |
|
Converts a string to lowercase. |
|
Copies a part of one string to another string. |
|
Returns a formatted string. |
|
Searches a string for the last occurrence of a character. |
|
Searches a string for a string. |
|
Searches a string for a character. |
|
Searches a string for a set of characters. |
|
Searches a string for a character that is not in a set of characters. |
|
Writes formatted output to a string. |
|
Modifies the pattern and attributes that Siebel CRM uses with the current instance of a regular expression object. |
|
Returns a section of a string. |
|
Converts Unicode values to a string. |
|
Returns the character that resides at a location in a string. |
|
Returns an array of strings that match a regular expression. |
|
Returns the Unicode value of the character that resides at a specific position in a string. |
|
Indicates if a string includes a regular expression. |
|
Parses a string and returns an array of strings according to a separator. |
|
Replaces a string with a string that you define. |
|
Returns the position of the last instance of a substring. |
|
Returns the position of a regular expression. |
Array Methods and Properties
The following table describes array methods and properties.
Method or Property | Description |
---|---|
Appends new elements to the end of an array. |
|
Searches an array for a value that you specify |
|
Sorts elements in an array. |
|
Creates a string of array elements. |
|
Returns the last element of the current array object, and then removes the element from the array. |
|
Returns the length of a dynamically created array. |
|
Returns a number that includes the largest index of an array, plus 1. |
|
Inserts new elements into an array. |
|
Reverses the order of elements of an array. |
|
Sets the size of an array. |
|
Sorts array elements. |
Mathematical Methods and Properties
This topic describes mathematical methods and properties.
Numeric Methods
The following table describes numeric methods.
Method | Description |
---|---|
Creates a pseudo-random number. |
|
Performs integer division and returns a quotient and remainder. |
|
Calculates a floating-point number given a mantissa and an exponent. |
|
Returns the integer part of a decimal number. |
|
Breaks a real number into a mantissa and an exponent as a power of 2. |
|
Creates an initial value for the random number generator. |
|
Returns the absolute value of an integer. |
|
Returns the smallest integer that is not less than the value that the number argument contains. |
|
Computes the exponential function. |
|
Returns the greatest integer that is not greater than the value that the number argument contains. |
|
Calculates the natural logarithm. |
|
Returns the largest of one or more values. |
|
Returns the smallest of one or more values. |
|
Returns a random real number between 0 and 1. |
|
Calculates the square root. |
|
Calculates x to the power of y. |
|
Rounds a value up or down. |
Trigonometric Methods
The following table describes trigonometric methods.
Method | Description |
---|---|
Calculates the hyperbolic cosine. |
|
Calculates the hyperbolic sine. |
|
Calculates the hyperbolic tangent. |
|
Calculates the arc cosine. |
|
Calculates the arcsine. |
|
Calculates the arc tangent of a fraction. |
|
Calculates the arc tangent. |
|
Calculates the cosine. |
|
Calculates the sine. |
|
Calculates the tangent. |
Mathematical Properties
The following table describes mathematical properties, each of which is a numeric constant.
Property | Description |
---|---|
Returns the value of e, which is the base for natural logarithms. |
|
Returns the value of the base 10 logarithm of e. |
|
Returns the value of the base 2 logarithm of e. |
|
Returns the value of the natural logarithm of 10. |
|
Returns the value of pi. |
|
Returns the value of the square root of ½. |
|
Returns the value of the square root of 2. |
BLOB Methods
The following table describes BLOB methods.
Method | Description |
---|---|
Reads data from a specified position in a BLOB. |
|
Determines the size of a BLOB. |
|
Writes data to a specified position in a BLOB. |
Date and Time Methods
The following table describes date and time methods.
Method | Description |
---|---|
Converts a date and time to GMT. |
|
Converts an integer to local time. |
|
Converts a time object to an integer. |
|
Computes the difference between two times. |
|
Writes a formatted date and time to a string. |
|
Returns a string that includes the local date and time. |
|
Returns the current processor tick count. |
|
Converts a date and time to a string. |
|
Converts a date string to a date object. |
|
Converts a date object to a GMT string. |
|
Converts a date object to an integer. |
|
Converts an integer date to a JavaScript date. |
|
Converts a UTC date to a format that a human can read. |
|
Returns the day of the month. |
|
Returns the day of the week. |
|
Returns the year as a four digit number. |
|
Returns the hour. |
|
Returns the millisecond. |
|
Returns the minute. |
|
Returns the month. |
|
Returns the second. |
|
Returns the date and time, in milliseconds, of a date object. |
|
Returns the difference, in minutes, from GMT. |
|
Returns the UTC day of the month. |
|
Returns the UTC day of the week. |
|
Returns the UTC year as a four digit number. |
|
Returns the UTC hour. |
|
Returns the UTC millisecond. |
|
Returns the UTC minute. |
|
Returns the UTC month. |
|
Returns the UTC second. |
|
Returns the year as a two digit number. |
|
Sets the day of the month. |
|
Sets the year as a four digit number. |
|
Sets the hour. |
|
Sets the millisecond. |
|
Sets the minute. |
|
Sets the month. |
|
Sets the second. |
|
Sets the date and time in a date object, in milliseconds. |
|
Sets the UTC day of the month. |
|
Sets the UTC year as a four digit number. |
|
Sets the UTC hour. |
|
Sets the UTC millisecond. |
|
Sets the UTC minute. |
|
Sets the UTC month. |
|
Sets the UTC second. |
|
Sets the year as a two digit number. |
Buffer Methods and Properties
The following information lists buffer methods and properties.
Method or Property | Description |
---|---|
Compares the contents of two buffers. |
|
Copies bytes from a source buffer to a destination buffer. |
|
Searches a buffer for the first occurrence of a character. |
|
Sets the bytes in a buffer to a character that you specify. |
|
Returns a section of a buffer. |
|
Returns a new buffer object that includes the data between two positions. |
|
Stores the current position of the buffer cursor. |
|
A reference to the internal data of a buffer. |
|
Returns a string that contains the same data as the buffer. |
|
Returns the value of the current cursor position in a buffer. |
|
Returns a string that starts from the current cursor position. |
|
Puts a string into a buffer. |
|
Puts a value into a buffer. |
|
Gets the address in memory of a buffer variable. |
|
Stores a Boolean flag for bigEndian byte ordering. |
|
Stores a Boolean flag that specifies whether to use Unicode strings when calling the Get String from Buffer method or the Put String in Buffer method. |
|
Provides access to individual bytes in the buffer. |
Siebel Library Methods
The following table describes methods that can manipulate data at specific memory locations in the Siebel Library.
Method | Description |
---|---|
Gets the address in memory of a buffer variable. |
|
Reads and returns data from a position in memory |
|
Writes data to a specific position in memory. |
Conversion Methods
The following table describes conversion methods.
Method | Description |
---|---|
Converts a number to exponential notation. |
|
Converts a number to a specific number of decimal places. |
|
Converts a number to a specific number of significant digits. |
|
Replaces special characters in a string. |
|
Converts an alphanumeric string to a floating-point decimal number. |
|
Converts an alphanumeric string to an integer number. |
|
converts Unicode characters to equivalent ASCII characters. |
|
Converts a value to the Boolean data type. |
|
Converts a value to a buffer. |
|
Converts a value to an integer. |
|
Converts a value to a number. |
|
Converts a value to an object. |
|
Converts a value to a string. |
|
Converts a value to a string. |
|
Converts a value to an unsigned integer. |
|
Converts a value to an unsigned large integer. |
|
Returns the value in the expression argument. |
Character Classification Methods
The following table describes character classification methods.
Method | Description |
---|---|
Determines if a character is alphabetic. |
|
Determines if a character is alphanumeric. |
|
Determines if a character is an ASCII character. |
|
Determines if a character is a control. |
|
Determines if character is a decimal digit. |
|
Determines if a character is a hexadecimal-digit character. |
|
Determines if a letter is a lowercase alphabetic letter. |
|
Determines if a character is a printable character. |
|
Determines if character is a printing character except for space. |
|
Determines if a character is a punctuation character. |
|
Determines if a character is a white-space character. |
|
Determines if a character is an uppercase alphabetic character. |
|
Determines if a value is finite. |
|
Determines if a value is not a number (NaN). |
Error Handling Methods
The following table describes error handling methods.
Method | Description |
---|---|
Clears the error status and resets the end-of-file flag for a file. |
|
Returns the error message associated with an error number. |
|
Returns the error number. |
|
Saves an error message in a string. |
|
Stops running code if an error occurs. |
Other Methods
The following table describes uncategorized methods.
Method | Description |
---|---|
Converts a character to ASCII. |
|
Returns the value of an environment variable. |
|
Creates or modifies environment variable. |
|
Causes the operating system to run a command. |
|
Calls a procedure from a dynamic link library in Microsoft Windows or a shared object in UNIX. |
|
Makes a variable undefined. |