setParamValue
Top  Previous  Next

setParamValue (string Param, floating Value, [ integer Index =0 ] )

Use this function to set the value of a specified measurement parameter. Typically used for formulation of user-defined parameters.

Arguments
 
Param  
 
A string specifying the name of the measurement parameter whose value is to be set. See selectParam for the list of parameters supported by ImageWarp.  
 
Value  
A floating variable specifying the value to be assigned to the selected parameter.  
 
Index  
 
An optional integer specifying the index of an element to be set in a vector parameter. This argument is ignored for scalar parameters.  
Default value: 0  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
The flag set if failed.  

Example
 
setParamValue ("Area", 999.5)  
Print "Area=", getParamValue("Area")