Send Topic Feedback | See Object Hierarchy Chart
PC-DMIS 2023.1 Object Library
PCDLRN ActiveX DLL > PartProgram Object : GetVariableValue Method
String value representing a variable object.
GetVariableValue Method
Description
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 Also