ObjectScript Tutorial
- Preface
- The Basics
- Tutorial Exercises
- A ObjectScript Routine
- Commands
- Write Command
- Read Command
- Set Command
- Operator Precedence
- Do Command
- Syntax
- Common Errors
- Write (again) and Kill Commands
- If Construct
- Relational Operators
- Logical Operators
- Negation
- Quit Command
- Routine Line Syntax
- Routine Line Syntax, continued
- Your First Routine
- Studio
- Hands-On Exercise 1
- Controlling Routine Flow
- ObjectScript Functions
- $Case Function
- For Construct
- For Construct, continued
- While and Do/While Constructs
- Try, Catch, and Throw Commands
- Procedures
- Procedure Variables
- Multiple Purpose Characters
- Hands-On Exercise 2
- Recap of Part 1
- The Good Stuff
- Strings
- Storing a String
- Concatenation Operator
- Pattern Match Operator
- Pattern Matching Examples
- Complex Pattern Matching
- String Functions
- String Functions, continued
- Lists
- Compare Pieces and Lists
- Setting Substrings, Pieces, and List Items
- More List Functions
- Bitstrings
- Dates
- Dates, continued
- User-Defined Functions
- Hands-On Exercise 3
- Debugging
- ZBreak Command
- ZBreak Actions
- Debugging Example
- Arrays
- Ordered Trees
- Ordered Trees, continued
- Value and Existence, and the $Data Function
- Viewing and Killing Arrays
- Globals
- $Increment Function
- Storage Procedure
- Storage Procedure, continued
- Example of Globals
- Example of Globals, continued
- Hands-On Exercise 4
- Recap of Part 2
- Using Your Database
- $Order Function
- $Order Function, continued
- Working With Indices
- $Order Loop
- For versus Do/While versus While
- Nested $Order Loops
- Focused $Order Loops
- Starting Focused $Order Loops
- Ending Focused $Order Loops
- Hands-On Exercise 5
- $Translate and $Replace Functions
- Parameter Passing by Reference
- Parameter Passing by Reference, continued
- $Get Function
- Hands-On Exercise 6
- Database Integrity
- Lock Command
- Lock Command, continued
- Lock Command and $Test
- Transaction Processing
- Hands-On Exercise 7
- Caché Objects and SQL
- Caché Methods
- Caché Object Storage
- Hands-On Exercise 8
- Recap Of Part 3
- Sample Application
- Right Triangle Routine
- Exercise 1: First Data Entry Routine
- Exercise 2: Second Data Entry Routine
- Exercise 3: Improve Data Entry Routine
- Exercise 4: Add Storage Procedure
- Exercise 5: Lookup Routine, version 1
- Exercise 6: Lookup Routine, version 2
- Exercise 7: Lookup Routine, final version
- Exercise 8: Object Versions of Data Entry and Lookup