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

Collapse All Expand All

VarName
  String value representing a variable.

Value
  Variable value representing the new value the variable will take.

# Description

Sets the variable value of specified name, if valid and can be set This method sets the value defined in Value for the variable specified by the string in VarName.

# Syntax

Visual Basic

    Public Function SetVariableValue( _
       ByVal VarName As String, _
       ByVal Value As Variable _
    ) As Boolean

# Parameters

VarName
  String value representing a variable.
Value
  Variable value representing the new value the variable will take.

# Return Type

Boolean value: TRUE if the variable was set, FALSE otherwise.

# 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.

# See Also

PartProgram Object | GetVariableValue Method | PutText Method

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.