To use a reference in your application, you must first create a reference field or variable.
Reference fields are like other global or local fields. The only difference is that they use the Reference control type.
In most cases, reference fields are added to windows. Reference fields don’t display any information, so when you add them to windows, they are always hidden. A reference field in a window can store a reference as long as the form it is part of remains open. A reference global variable can store a reference as long as the application is running.
To create a reference local variable or parameter for a script, simply specify reference as the variable or parameter type. A reference variable can store a reference as long as the script it is part of is running.