aimodel.getVariableValue

Returns the current value of an AIModel "member" variable.

Prototype

  1. vValue = aimodel.getVariableValue ( hAIModel, sName|nIndex )

Description

You have to check separately for variable type!


Parameters

hAIModel - valid AIModel handle
sName|nIndex - name string or index number 1..nVariableCount


Return values

vValue - value of the variable


Sample

  1. local vValue = aimodel.getVariableValue ( hResource, sVariableName )
  2. local kType = aimodel.getVariableType ( hResource, sVariableName )
  3. if ( kType == aimodel.kVariableTypeString ) then
  4. commonAPI.setPropertyViewControlEditText ( gui.getComponentFromView ( hView, "editVariableDialog.value.edit" ), vValue )
  5. end
  6.  

Available since ShiVa 2.0