This VB.NET macro will read the value of the variable with the name "return_numeric" and write it to the output window.
Public Sub Macro_ReadValue()
Dim obVar As zenOn.IVariable
Dim vValue As Integer
obVar = Me.Variables.Item("return_numeric_1")
If Not obVar Is Nothing Then
If obVar.IsOnline() Then
'safe to read, variable exists and has a valid value
vValue = obVar.get_Value(0)
System.Diagnostics.Debug.Print(vValue.ToString())
Else : System.Diagnostics.Debug.Print("variable has no valid value")
End If
Else : System.Diagnostics.Debug.Print("variable does not exist")
End If
End Sub