"getLayerFieldIndex"
Returns the field index for the specified field name in the specified layer.
Synopsis
int getLayerFieldIndex(string strLayer, string strField);
Parameters
Parameter | Description |
---|---|
strLayer | The layer whose field index should be returned. |
strField | The name of the field whose index should be returned. |
Description
Returns the field index for the specified field name in the specified layer.
Example
The code will return the index for the field "NAME"; of the layer "COUNTRY".
main()
{
int i;
i = GisViewer_ewo1.getLayerFieldIndex("COUNTRY","NAME");
DebugN("Field index of field name in layer COUNTRY:", i);
}
Assignment
GIS Viewer