aimodel.getVariableValue
Returns the current value of an AIModel "member" variable.
Prototype
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
local vValue = aimodel.getVariableValue ( hResource, sVariableName ) local kType = aimodel.getVariableType ( hResource, sVariableName ) if ( kType == aimodel.kVariableTypeString ) then commonAPI.setPropertyViewControlEditText ( gui.getComponentFromView ( hView, "editVariableDialog.value.edit" ), vValue ) end
Available since ShiVa 2.0