GetRef

From NSB App Studio
Revision as of 22:42, 8 July 2012 by Brendon (talk | contribs) (Created page with "GETREF (''objectName'') '''Description''' GetRef returns a reference to an object. This can be useful when you want get the reference to a function insteal of calling it. '...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GETREF (objectName)

Description

GetRef returns a reference to an object. This can be useful when you want get the reference to a function insteal of calling it.

Example

Function printTxt(txt)
  Print txt
End Function
 
A=printTxt("Call function directly")
B=GetRef(printTxt)
B("Call function indirectly")

Output

Call function directly.
Call function indirectly.

Related Items

FORM