GetRef: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
m Ghenne moved page Getref to GetRef
JwellsNB (talk | contribs)
→‎Description: fix word spelling
Line 3: Line 3:
== Description ==
== 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.
GetRef returns a reference to an object. This can be useful when you want get the reference to a function instead of calling it.


== Example ==
== Example ==

Revision as of 19:54, 19 May 2013

GetRef (objectName)

Description

GetRef returns a reference to an object. This can be useful when you want get the reference to a function instead 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