TmAddSelectedVars Procedure
Adds selected variables from a VDA Tool to the list of selected variables in the Tools Manager.
Usage
TmAddSelectedVars, tool_name, var_name
Parameters
tool_name—A string containing the unique name of a VDA Tool.
var_name—A string containing the name of a variable from the VDA Tool to add to the selected variables list.
Keywords
None.
Discussion
The Tools Manager maintains a list of variables that have been selected in a VDA Tool. The selected variables list enables variables to be exchanged between VDA Tools. This routine is called by the Export Variables dialog box and the data selection function found in VDA Tools.
Example
This example demonstrates how variables from a VDA Tool are added to the variable selection list, exported to another VDA Tool, and deleted from the variable selection list.
; No variables are currently on the variable selection list.
PRINT, TmEnumerateSelectedVars()
; The variable HAN is displayed in the VDA Tool WzPlot_0.
PRINT, TmEnumerateVars('WzPlot_0')
HAN
; Add HAN in the VDA Tool WzPlot to the selected variables list.
TmAddSelectedVars, 'WzPlot_0', 'HAN'
; Enumerate the variables on the selected variables list.
PRINT, TmEnumerateSelectedVars()
; Export variable on selection list to another active VDA Tool.
TmExportSelection, ['WzPlot_2']
; Remove all variables from the variable selection list.
TmDeselectVars
See Also