TScript Variables Keyword (error, this)

The error keyword

The "error" keyword is a globally defined variable that records the error information for the current script. It is accessible from any position in any method throughout the TScript source code. It is defined as a TVariable::ERROR_MSG and contains two values, the errorCode and an errorString. This error code is set by equating the error variable to an integer and the error string is set by equating the error variable to an astring value

The this keyword

From any method defined within a defined variable can access a "this" variable. This variable will allow the method to directly access variables contained with the defined variable. For example the following code declares a defined variable which contains a method that can access the "this" variable.

public variable Class{
   Integer height, width;
      height = width = 10;
   public getDimensions(: Integer width, Integer height){
      width = this.width;
      height = this.height;