GetRef: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 29: | Line 29: | ||
[[Category:Language Reference]] | [[Category:Language Reference]] | ||
[[Category:Variable Handling]] |
Revision as of 20:05, 14 September 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.