Skip to content

Self Global Variable

Purpose

Stores the object ID of the current object.

Type

Integer

What It Does

The Self keyword is defined as a reference to the current object (current instance of the class). Wherever a statement requires a handle to some object, the Self keyword can be used when you wish to reference the current object.

The current object is whatever object is currently executing code. For example, if you click on a Button object, it will execute its OnClick method. During the execution of the OnClick method, that particular Button is the current object.

The identifier Current_Object is a synonym for Self.