MYBASE pseudo-variable

Purpose

A pseudo object variable to reference the inherited parent object.

Syntax

MYBASE.Method1(param)

Remarks

MYBASE is a pseudo-variable, which PowerBASIC automatically defines in every Method and Property on an inherited interface.  It is treated as a reference to the original, inherited object.  Using MYBASE, it's possible to call the original Methods and Properties so you can modify or build upon them in the derived interface.

MYBASE may not be assigned to an object variable, nor may it be used as a Sub/Function/Method/Property parameter.

See also

CLASS, INTERFACE (Direct), INTERFACE (IDBind), ME, METHOD, PROPERTY, What is an object, anyway?, What is inheritance?