February 11, 2008

Tip13 - Reference Operator @

The reference operator (@expression) lets you refer to functions and variables indirectly, by name. It uses the value of its operand to refer to variable, the fields in a record, function, method, property or child window.

Example
1. Used to refer a window object
wLeftframe.@(sModuleName).Click(1,16,10)

2. Used to refer method or function
wLeftframe.Links.@(sPropReload)( )

3. To refer a member of record type
adAlert.@sComments = "My Comments"

0 comments: