Home / lang / me 
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration   
fr  de  es  it  nl  pl  pt  pt_BR  ca  ar  fa  vi  ja  ru  zh  zh_TW  eo 
Documentation
History
 
ME
Syntax
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.

Examples

' 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