Home > lang > me 
 fr de es it nl pl pt pt_BR mk sq ca hu tr ar fa vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
ME
ME 

Returns a reference to the current object.

ME is mandatory when you want to call an inherited method, or access an inherited property or variable.

Example

' Gambas form

...

PUBLIC SUB SetTitle(Title AS String)

  ME.Text = Title

END

PUBLIC SUB MoveRight(Step AS Integer)

  ME.Move(ME.X + Step, ME.Y)

END

The next example shows that ME returns the Form, while LAST returns the activated Button.

PUBLIC SUB Button5_Click()
  PRINT ME;; LAST
END

(Form1 0x80d8090) (Button 0x80fa060)

See also

Object & Class Management