GetVar

Syntax:

%GetVar(iIndex)%

Description:

Returns the name of the Automate variable at enumerated variable list index. (Note: this function returns valid results only from within a running task).  

Parameters:

Parameter

Description

iIndex

The index number of the variable name to return from the list of enumerated Automate variable names.

 

Example:


Sub Main
' Display the names of all the Automate variables and their
' contents

Dim iTotalVariables As Integer

iTotalVariables = GetVarCount()

For iIndex=0 to iTotalVariables
MsgBox GetVar(iIndex)
MsgBox GetVarValueByVarName(GetVar(iIndex))
Next iIndex

End
Sub


See Also:

GetVarCount, GetVarValueByVarName