Skip to main content

This documentation is for an older version of this product. See the latest version of this content.Opens in a new tab

Welcome

Welcome to the ObjectScript Tutorial!

ObjectScript is a procedural language with distinctive features, the most notable of which is a powerful and flexible data model and storage engine, called globals. InterSystems IRIS® data platform provides multiple data models and APIsOpens in a new tab for developers. ObjectScript and globals are at the core of it all!

The tutorial has three parts:

  • Part 1 (The Basics, this part) covers standard language elements and introduces using Visual Studio Code with the InterSystems ObjectScript extensions.

  • Part 2 (The Good Stuff) covers string and list handling, arrays, and introduces globals.

  • Part 3 (Using Globals) covers globals in depth. It also contains a brief introduction to objects, properties, instance methods, and SQL queries.

You should proceed sequentially through the pages in each part using the table of contents on the left. You can also use the links to the previous and next pages at the bottom of each page.

Here's what you'll learn in Part 1:

  • What an InterSystems IRIS class definition looks like, and how to write class methods.

  • How to use VS Code - ObjectScript, the Terminal, and the ObjectScript Shell.

  • ObjectScript commands: Write, Read, Set, Kill, Do, Quit, Return, and Continue, including post-conditional and argumentless versions.

  • ObjectScript constructs: If, For, While, Do/While, Try/Catch.

  • Proper syntax, and some common errors you may encounter.

Besides the tutorial, you can also refer to the ObjectScript Reference for more information on ObjectScript commands and functions.

FeedbackOpens in a new tab