PreviousNext JavaScript must be enabled to correctly display this content
  • Title and Copyright Information
  • Preface
  • 1 What’s New in This Release
    • What’s New in Siebel CRM 20.1 Update
    • What’s New in Siebel CRM 19.1 Update
  • 2 About Siebel eScript
    • About Siebel eScript
    • Overview of Siebel eScript
      • About the Script Assist Utility
    • About Data Types and Numbers
      • About Primitive Data Types
        • bool Data Type
        • chars Data Type
        • float Data Type
        • undefined Data Type
      • About Composite Data Types
        • Overview of the Object Data Type
        • Boolean Data Type
        • String Data Type
        • Number Data Type
        • Array Data Type
        • null Data Type
        • Other Object Types That Siebel eScript Supports
      • Properties and Methods of Common Data Types
      • How Siebel eScript Converts Data Types
        • Concatenation Can Cause a Conversion
        • Setting the Data Type Can Cause a Conversion
      • About Numbers
        • Integer Numbers
        • Hexadecimal Numbers
        • Octal Numbers
        • Floating Point Numbers
        • Floating Decimal Numbers
        • Scientific Numbers
        • NaN Numbers
        • Numeric Constants
    • About Functions and Methods
      • Example of a Function
      • About Function Scope
      • The Arguments Property of a Function
      • About Recursive Functions
      • Error Checking with Functions
      • Where Data Resides
  • 3 Using Siebel eScript
    • Using Siebel eScript
    • Using Operators in Siebel eScript
      • Overview of Mathematical Operators
      • Using a Shortcut Operation to Do an Arithmetic Operation
      • Modifying the Sequence That Siebel eScript Uses to Evaluate an Expression
      • Using Logical Operators and Conditional Expressions
        • Example of Using Logical Operators and Conditional Expressions
        • Using the Equality Operator with a Strongly Typed Variable
      • Increasing or Decreasing the Value of a Variable
      • Using Less Code to Write an Else Statement
        • Examples of Using the Conditional Operator
      • Concatenating Strings
        • Examples of Concatenating Strings
      • Using a Bit Operator
    • Coding with Siebel eScript
      • Using Script Libraries
        • Example of Calling a Business Service Function
        • Example of a Creating Custom Method for a Business Service
        • Displaying a Custom Method in Script Assist
      • Using Strongly Typed and Typeless Variables
        • Creating a Strongly Typed Variable
        • Creating a Typeless Variable
      • Declaring and Using Variables
        • About Local and Global Variables
        • Using a Local Variable Is Preferable to Using a Global Variable
        • Example of Declaring Local and Global Variables
        • Declaring a Variable
        • Declaring a Variable In a Statement Block
      • Determining the Data Type of a Variable
      • Passing a Value to a Function
        • Passing a Value Through a Variable
        • Passing a Value Through a Reference
      • Preventing a Floating-Point Error
      • Using the Literal Value of a Special Character
      • Running Browser Script When Siebel CRM Starts a Siebel Application
      • Releasing an Object from Memory
      • Monitoring the Performance of Your Script
    • Guidelines for Using Siebel eScript
      • Make Sure You Use the Correct Format for Names
        • Special Characters
        • Reserved Words
      • Make Sure You Use the Correct Case
      • Use Expressions, Statements, and Statement Blocks
        • Running Statements In a Loop
      • Use a Primitive Data Type Instead of an Object Data Type
      • Use White Space to Improve Readability
        • Using White Space in a String Literal Can Cause Errors
      • Use Comments to Document Your Code
      • Make Sure the JavaScript Interpreter Can Run a Function
  • 4 Statements Reference
    • Statements Reference
    • Break Statement
    • Continue Statement
    • Do While Statement
    • For Statement
    • For In Statement
    • Goto Statement
    • If Statement
    • Switch Statement
    • Throw Statement
    • Try Statement
    • While Statement
    • With Statement
  • 5 Methods Reference
    • Methods Reference
    • Overview of Methods Reference
      • Usage of the Term Put
    • Array Methods
      • Overview of Array Methods
        • Example of Using an Array
      • About Array Functions
      • About Associative Arrays
        • Example of Using an Associative Array
      • Add Array Elements Method
      • Concatenate Array Method
      • Create Array Elements Method
      • Delete Last Array Element Method
      • Get Largest Array Index Method
      • Get Subarray Method
      • Insert Array Elements Method
      • Reverse Array Order Method
      • Shift Array Left Method
      • Shift Array Right Method
      • Sort Array Method
    • String Methods
      • Overview of String Methods
        • How Siebel eScript Handles Special Characters In a String
      • Change String to Lowercase Method
      • Change String to Uppercase Method
      • Create String From Substring Method
      • Create String From Unicode Values Method
      • Get Character From String Method
      • Get Unicode Character From String Method
      • Get Regular Expression From StringVar Method
      • Get String Length Method
      • Parse String Method
      • Replace String Method
      • Search String for Substring Method
      • Search String for Last Substring Method
      • Search StringVar for Regular Expression Method
    • BLOB Methods
      • About the BLOB Descriptor
        • Example of Using a BLOB Descriptor
        • Values You Must Use with a BLOB Descriptor
      • Get BLOB Data Method
      • Get BLOB Size Method
      • Write BLOB Data Method
    • Buffer Methods
      • Overview of Buffer Methods
      • About Buffer Constructors
      • Create Buffer Method
      • Get Buffer Data Method
      • Get Cursor Position Value From Buffer Method
      • Get String From Buffer Method
      • Put String in Buffer Method
      • Put Value in Buffer Method
      • Write Byte to Buffer Method
      • Buffer Size Property
      • Cursor Position in Buffer Property
      • Data in Buffer Property
      • Use Big Endian in Buffer Property
      • Use Unicode in Buffer Property
    • Date and Time Methods
      • Overview of Date Methods
        • Format for Calling a Date Method
        • Caution About Using Two-Digit Dates
        • Values for Dates and Times
      • About the Date Constructor
      • Convert Date and Time to String Method
      • Convert Date to Integer Method
      • Convert Date String to Date Object Method
      • Convert Date to GMT String Method
      • Convert Integer Date to JavaScript Date Method
      • Get Day of Month Method
      • Get Day of Week Method
      • Get Full Year Method
      • Get Hours Method
      • Get Milliseconds Method
      • Get Minutes Method
      • Get Month Method
      • Get Seconds Method
      • Get Time Method
      • Get Time Zone Offset Method
      • Get Year Method
      • Set Date Method
      • Set Full Year Method
      • Set Hours Method
      • Set Milliseconds Method
      • Set Minutes Method
      • Set Month Method
      • Set Seconds Method
      • Set Time Method
      • Set Year Method
    • UTC Methods
      • Convert UTC Date to Readable Date Method
      • Get UTC Date Method
      • Get UTC Day of Month Method
      • Get UTC Day of Week Method
      • Get UTC Full Year Method
      • Get UTC Hours Method
      • Get UTC Milliseconds Method
      • Get UTC Minutes Method
      • Get UTC Month Method
      • Get UTC Seconds Method
      • Set UTC Date Method
      • Set UTC Full Year Method
      • Set UTC Hours Method
      • Set UTC Milliseconds Method
      • Set UTC Minutes Method
      • Set UTC Month Method
      • Set UTC Seconds Method
    • Global Methods
      • Overview of Global Methods
      • Create COM Object Method
      • Get Array Length Method
      • Set Array Length Method
      • Undefine Method
    • Conversion Methods
      • Overview of Conversion Methods
      • Convert String to Floating-Point Number Method
      • Convert String to Integer Method
      • Convert Number to Exponential Notation Method
      • Convert Number to Fixed Decimal Method
      • Convert Number to Precision Method
      • Convert Special Characters to URL Method
      • Convert Unicode to ASCII Method
      • Convert Value to Boolean Method
      • Convert Value to Buffer Method
      • Convert Value to Bytes Method
      • Convert Value to Integer Method
      • Convert Value to Integer 32 Method
      • Convert Value to Unsigned Integer 16 Method
      • Convert Value to Unsigned Integer 32 Method
      • Convert Value to Number Method
      • Convert Value to Object Method
      • Convert Value to String Method
      • Evaluate Expression Method
    • Data Querying Methods
      • Is Defined Method
      • Is Finite Method
      • Is NaN Method
      • Exception Object
      • Function Object
        • Length Property of a Function Object
        • Return Statement of a Function Object
    • Mathematical Methods
      • Overview of Mathematical Methods
      • Properties of the Math Object
        • Base E Property
        • Logarithm 2 E Property
        • Logarithm 10 E Property
        • Natural Logarithm 2 Property
        • Math Natural Logarithm 10 Property
        • PI Property
        • Square Root 1/2 Property
        • Square Root 2 Property
      • Get Absolute Value Method
      • Get Arc Cosine Method
      • Get Arcsine Method
      • Get Arctangent Method
      • Get Arctangent 2 Method
      • Get Ceiling Method
      • Get Cosine Method
      • Get Exponential Method
      • Get Floor Method
      • Get Logarithm Method
      • Get Maximum Method
      • Get Minimum Method
      • Get Quotient Method
      • Get Random Number Method
      • Get Remainder Method
      • Get Sine Method
      • Get Square Root Method
      • Get Tangent Method
      • Raise Power Method
      • Round Number Method
    • Regular Expression Methods
      • Overview of Regular Expression Methods
      • Properties of Regular Expressions
        • Regular Expression Global Property
        • Regular Expression Ignore Case Property
        • Regular Expression Multiline Property
        • Regular Expression Source Property
      • Compile Regular Expressions Method
      • Get Regular Expression from String Method
      • Is Regular Expression in String Method
    • Siebel Library Methods
      • Siebel Library Call DLL Method
      • Siebel Library Get Pointer Address Method
      • Siebel Library Peek Method
      • Siebel Library Write Data Method
    • Custom Methods
      • Overview of Custom Methods
      • How the Constructor Function Creates an Object
        • Example of Using a Constructor Function
      • How a Function Is Assigned to an Object
      • About Object Prototypes
        • How an Object Prototype Conserves Memory
        • Example of Using an Object Prototype
        • Adding Methods and Data to an Object Prototype
  • 6 C Language Library Reference
    • C Language Library Reference
    • Overview of the Clib Object
      • Using Siebel eScript Methods Instead of Clib Methods
    • Clib File and Directory Methods
      • Overview of Clib File and Directory Methods
      • Clib Close File Method
      • Clib Create Temporary File Method
      • Clib Create Temporary File Name Method
      • Clib Delete File Method
      • Clib Lock File Method
      • Clib Open File Method
      • Clib Rename File Method
      • Clib Reopen File Method
      • Clib Change Directory Method
      • Clib Create Directory Method
      • Clib Get Current Working Directory Method
      • Clib Remove Directory Method
    • Clib File Input and Output Methods
      • Overview of Clib File Input and Output Methods
      • Format Characters for Methods That Print and Scan
        • Format Characters for Methods That Print
        • Format Characters for Methods That Scan
      • Clib Clear Buffer Method
      • Clib End of File Method
      • Clib Get Character Method
      • Clib Get Characters to Next Line Method
      • Clib Get Cursor Position Method
      • Clib Get Relative Cursor Position Method
      • Clib Move Cursor to Beginning of File Method
      • Clib Read From File Method
      • Clib Restore Cursor Position Method
      • Clib Set Cursor Position Method
      • Clib Scan and Convert File Method
      • Clib Scan and Convert from Input Device Method
      • Clib Unget Method
      • Clib Write Character Method
      • Clib Write Formatted String Method
      • Clib Write String to File Method
      • Clib Write to File Method
    • Clib String Methods
      • Clib Append String Method
      • Clib Compare Strings Method
      • Clib Convert String to Lowercase Method
      • Clib Copy String Method
      • Clib Get Formatted String Method
      • Clib Get Last Substring Method
      • Clib Get Substring Method
      • Clib Search String for Character Method
      • Clib Search String for Character Set Method
      • Clib Search String for Not Character Set Method
      • Clib Write Formatted String Method
    • Clib Buffer Methods
      • Clib Get Memory Method
      • Clib Compare Memory Method
      • Clib Copy Memory Method
      • Clib Set Memory Method
    • Clib Mathematical Methods
      • Clib Create Random Number Method
      • Clib Divide Method
      • Clib Get Floating Point Number Method
      • Clib Get Hyperbolic Cosine Method
      • Clib Get Hyperbolic Sine Method
      • Clib Get Hyperbolic Tangent Method
      • Clib Get Integer Method
      • Clib Get Normalized Mantissa Method
      • Clib Initialize Random Number Generator Method
    • Clib Date and Time Methods
      • Overview of Clib Date and Time Methods
      • About the Objects That Each Clib Time Method Returns
      • Clib Convert Integer to GMT Method
      • Clib Convert Integer to Local Time Method
      • Clib Convert Time to Integer Method
      • Clib Convert Time Object to Integer Method
      • Clib Get Date and Time Method
      • Clib Get Formatted Date and Time Method
      • Clib Get Local Date and Time Method
      • Clib Get Difference in Seconds Method
      • Clib Get Tick Count Method
    • Clib Character Classification Methods
      • Overview of Clib Character Classification Methods
      • Clib Is Alphabetic Method
      • Clib Is Alphanumeric Method
      • Clib Is ASCII Method
      • Clib Is Control Method
      • Clib Is Digit Method
      • Clib Is Lowercase Method
      • Clib Is Printable Method
      • Clib Is Printable Not Space Method
      • Clib Is Punctuation Mark Method
      • Clib Is Space Method
      • Clib Is Uppercase Method
      • Clib Is Hexadecimal Method
    • Clib Error Methods
      • Clib Clear Error Method
      • Clib Get Error Number Method
      • Clib Get Error Message Method
      • Clib Save Error Message In String Method
      • Clib Error Number Property
    • Other Clib Methods
      • Clib Convert Character to ASCII Method
      • Clib Modify Environment Variable Method
      • Clib Get Environment Variable Method
      • Clib Send Command Method
      • Clib Search Array Method
      • Clib Sort Array Method
  • 7 Siebel eScript Quick Reference
    • Siebel eScript Quick Reference
    • File and Directory Methods
      • File Manipulation Methods
      • File Manipulation Methods
      • Directory Manipulation Methods
    • String Methods
    • Array Methods and Properties
    • Mathematical Methods and Properties
      • Numeric Methods
      • Trigonometric Methods
      • Mathematical Properties
    • BLOB Methods
    • Date and Time Methods
    • Buffer Methods and Properties
    • Siebel Library Methods
    • Conversion Methods
    • Character Classification Methods
    • Error Handling Methods
    • Other Methods
  • 8 Compilation Error Messages
    • Compilation Error Messages
    • Formats That This chapter Uses
    • Format Error Messages
    • Semantic Error Messages
    • Semantic Warnings
    • Preprocessing Error Messages