Using Siebel eScript Methods Instead of Clib Methods
The following table lists each Clib method that has an equivalent method in Siebel eScript. These methods are redundant because their functionality already exists in Siebel eScript. Where possible, you must use the Siebel eScript method instead of the equivalent Clib method. In some situations the Clib method is preferred and is more consistent in a section of script. For example, when working with a string routine that expects a null string.
Siebel eScript Method | Clib Method | Description |
---|---|---|
abs |
Calculates absolute value. |
|
acos |
Calculates the arc cosine. |
|
asin |
Calculates the arc sine. |
|
atan |
Calculates the arc tangent. |
|
atan2 |
Calculates the arc tangent of a fraction. |
|
atof |
Converts a string to a floating-point number. |
|
atoi |
Converts a string to an integer. |
|
Automatic conversion |
atol |
Converts a string to a long integer. |
ceil |
Rounds a number up to the nearest integer. |
|
cos |
Calculates the cosine. |
|
exp |
Calculates the exponential function. |
|
Math absolute |
fabs |
Calculates the absolute value of a floating-point number. |
floor |
Rounds a number down to the nearest integer. |
|
% operator, modulo |
fmod |
Calculates the remainder. |
Math absolute |
labs |
Returns the absolute value of a long. |
log |
Calculates the natural logarithm. |
|
max |
Returns the largest of one or more values. |
|
min |
Returns the smallest of one or more values. |
|
pow |
Calculates x to the power of y. |
|
sin |
Calculates the sine. |
|
sqrt |
Calculates the square root. |
|
+ operator |
strcat |
Appends one string to another. |
== operator |
strcmp |
Compares two strings. |
= operator |
strcpy |
Copies a string. |
strlen |
Gets the length of a string. |
|
strlwr |
Converts a string to lowercase. |
|
Automatic conversion |
strtod |
Converts a string to decimal. |
Automatic conversion |
strtol |
Converts a string to long. |
strupr |
Converts a string to uppercase. |
|
tan |
Calculates the tangent. |
|
string.toLowerCase |
tolower |
Converts a character to lowercase. |
string.toUpperCase |
toupper |
Converts a character to uppercase. |
The phrase automatic conversion in the Siebel eScript Method column means that Siebel eScript implicitly performs a conversion. For example, when comparing Siebel eScript to the atol Clib method, if the variable that will hold the converted string is of type Number, then Siebel eScript implicitly converts the string from a string to a long integer.