GetRef: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
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. '..."
 
Brendon (talk | contribs)
No edit summary
Line 1: Line 1:
GETREF (''objectName'')
GetRef (''objectName'')


'''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 insteal of calling it.


'''Example'''
== Example ==


<pre>
<pre>
Line 17: Line 17:
</pre>
</pre>


'''Output'''
== Output ==


<pre>
<pre>
Line 24: Line 24:
</pre>
</pre>


'''Related Items'''
== Related Items ==


[[form|FORM]]
[[form|FORM]]
[[Category:Language Reference]]

Revision as of 01:23, 17 August 2012

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