2. Language Elements : Expressions : Literals : System Variables
 
Share this page                  
System Variables
System variables are built-in variables that are available in all frames and scripts. OpenROAD provides the following system variables:
CurEventScope
Specifies the context of the currently executing event block. This is a local variable of type Scope. Referencing CurEventScope outside of an event block causes a compile-time error.
CurScriptScope
Specifies the context of the currently executing field script. This is a local variable of type Scope. Referencing CurScriptScope outside of a field script causes a compile-time error.
CurFrame
Specifies the current frame. This is a local variable of type FrameExec. For more information about using the CurFrame variable, see FrameExec Class (see FrameExec Class).
CurMethod
Specifies the currently executing user class method. This is a local variable of type MethodExec.
CurObject
Specifies the user class object on which the currently executing user class method was invoked. This is a local variable of type UserObject.
CurProcedure
The currently executing procedure. This is a local variable of type ProcExec.
CurSession
Specifies, for each application, a global variable of type SessionObject that contains information about the current runtime environment, such as whether the user's display supports color or what operating system is being used.
IIDBMSerror
Specifies the error code returned as a DBMS‑specific error number. This error code reflects the last SQL statement encountered for the current frame or procedure's current DBMS connection. If no error occurred, IIDBMSerror is set to 0.
For the associated generic error number, see the IIerrornumber system variable.
IIerrornumber
Specifies the error code returned as a DBMS‑independent error number. This error number reflects the last SQL statement encountered for the current frame or procedure's current DBMS connection. If no error occurred, IIerrornumber is set to 0.
For the associated DBMS-specific error code, see the IIDBMSerror system variable.
IIrowcount
Specifies the number of rows affected by the last SQL statement encountered for the current frame or procedure's current DBMS connection. After select statements, IIrowcount is the number of rows selected. After insert statements, it is the number of rows inserted into the database. After delete or update statements, it is the number of rows affected.