Using ObjectScript
- Introduction to ObjectScript
- Features
- Sample Class with ObjectScript
- Sample Routine
- Variables
- Multidimensional Arrays
- Operators
- Commands
- System Functions
- Special Variables
- Potential Pitfalls
- See Also
- ObjectScript Syntax Basics
- Left-to-Right Precedence
- Case Sensitivity
- Identifiers
- Reserved Words
- Expressions
- Commands
- Command Postconditional Expressions
- Command Arguments
- Routine Syntax
- Method Syntax
- Whitespace
- Labels
- Comments
- Namespaces
- See Also
- Procedure Syntax
- Introduction
- Procedures as Functions
- Procedure Variables
- Procedure Code
- Indirection, XECUTE Commands, and JOB Commands within Procedures
- Error Traps within Procedures
- Introduction to ObjectScript Commands
- Command to Assign Values
- Commands to Invoke Code
- Commands to Control Flow
- Commands to Processes Error
- Commands to Process Transactions
- Command for Locking and Concurrency Control
- Write Commands
- READ Command
- Files and Devices
- See Also
- Introduction to ObjectScript Operators
- Introduction
- Operator Precedence
- Numeric Operators
- String Operators
- Boolean Operators
- Indirection Operator (@)
- See Also
- Invoking Code and Passing Arguments
- Calling Units of Code
- Formal Argument Lists and Examples
- Passing Arguments (Basics)
- Passing ByRef or Output Arguments
- Comparison: Arguments by Value and Arguments by Reference
- Passing a Variable Number of Arguments
- ObjectScript Variables and Scope
- Kinds of Variables
- Variable Names
- Variable Availability and Scope
- Length of Value
- Variable Existence and Undefined Variables
- #dim (Optional)
- Global Variables and Journaling
- See Also
- Working with Globals
- Storing Data in Globals
- Deleting Global Nodes
- Testing the Existence of a Global Node
- Retrieving the Value of a Global Node
- Traversing Data within a Global
- Copying Data within Globals
- Maintaining Shared Counters within Globals
- Sorting Data within Globals
- Using Indirection with Globals
- Managing Concurrency
- Checking the Most Recent Global Reference
- See Also
- Process-Private Globals
- Extended References
- Introduction
- Types
- Forms and Syntaxes
- Bracket Syntax
- Bracket Syntax with References to Databases
- Environment Syntax
- See Also
- Multidimensional Arrays
- Introduction and Terminology
- Where Multidimensional Arrays Are Supported
- Subscript Rules
- Manipulating Multidimensional Arrays
- Class-Based Arrays
- See Also
- Types of Data in ObjectScript
- Numeric Values in ObjectScript
- Numeric Literals
- Arithmetic
- Numeric Equality
- Other Numeric Comparisons
- Canonical Numbers
- Floating-Point Numbers
- Extremely Large Numbers
- String-to-Number Conversion
- See Also
- Strings in ObjectScript
- String Literals
- Non-Printing Characters and Unicode Characters
- Null Strings and the Null Character
- String Concatenation
- String Equality
- Other String Relational Operators
- Pattern Match Operator (?)
- Commonly Used String Functions
- See Also
- Boolean Values in ObjectScript
- Introduction
- Uses
- Logical Operators
- Precedence and Logical Operators
- Combining Boolean Values
- See Also
- Lists in ObjectScript
- Native List Format
- List Functions
- Sparse Lists and Sublists
- List Compression
- Delimited Strings as an Alternative
- Lists and Delimited Strings Compared
- Class-Based Lists
- See Also
- Bitstrings in ObjectScript
- Introduction
- Storing a Sequence of Bits as a Bitstring
- Storing a Sequence of Bits as an Integer
- Manipulating Bitstrings
- Manipulating Bitstrings Implemented as Integers
- Date and Time Values
- Macros and Include Files
- Macro Basics
- Include File Basics
- Defining Macros
- Including Include Files
- Where to See Expanded Macros
- See Also
- Embedded SQL
- Working with %Status Values
- Basics of Working with Status Values
- Examples
- Variation (%objlasterror)
- Multiple Errors Reported in a Status Value
- Returning a %Status
- %SYSTEM.Error
- See Also
- Using TRY-CATCH
- Introduction
- Using THROW with TRY-CATCH
- Using $$$ThrowOnError and $$$ThrowStatus Macros
- Using the %Exception.SystemException and %Exception.AbstractException Classes
- Other Considerations with TRY-CATCH
- Error Logging
- Logging Application Errors
- Using Management Portal to View Application Error Logs
- Using ^%ERN to View Application Error Logs
- See Also
- Command-Line Routine Debugging
- Secure Debug Shell
- Debugging with the ObjectScript Debugger
- Debugging With BREAK
- Using %STACK to Display the Stack
- Other Debugging Tools
- What’s That?