PC-Dmis 2010 MR2 Object Library | Send comments on this topic. | See Object Hierarchy Chart
GetVariableValue Method
See Also

Collapse All Expand All

VarName
  String value representing a variable object.

# Description

Returns a variable object of specified name, if it exists This method returns a variable object specified by the string in VarName.

# Syntax

Visual Basic

    Public Function GetVariableValue( _
       ByVal VarName As String _
    ) As Variable

# Parameters

VarName
  String value representing a variable object.

# Return Type

Variable object.

# Remarks

PC-DMIS variables only hold values during execution; at learn time PC-DMIS variables have a value of zero. The GetVariableValue and SetVariableValue methods only change a variable's value during the script's execution. If you want to permanently change a value of a variable inside PC-DMIS, you should use the PutText method instead.

# Example

See Sample Automation Script 1

# See Also

PartProgram Object | SetVariableValue Method | PutText Method | PCDLRN Project

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.