GetGridCell
Top  Previous  Next

Description

This COM method returns the value of the specified cell in the Global Grid.


Syntax


[VB]
Value=objImageWarp.GetGridCell ( Param, Object, Index )


[C/C++]
HRESULT GetGridCell( BSTR Param, int Object, int Index, float* pValue );


Data Types
[VB]

Param: String
Object: Long
Index: Long
Return value: Single


Parameters
[C/C++]

Param [in]  
String specifying the name of the measurement parameter whose value is to be retrieved. See selectParam for the list of parameters supported by ImageWarp  
Object [in]  
Ordinal number of the object in the grid. This is equal to the number of the corresponding row.  
Index [in]  
Index of an element to be retrieved from a vector parameter. This argument is ignored for scalar parameters.  
pValue [out,retval]  
Pointer to the cell's value  

Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB statement retrieves the value of the "Area" parameter for object #11 in the Global Grid.

value=IW.GetGridCell ("Area", 11, 0)