"getNumFieldsLayer"

Returns the number of fields for the layer.

Synopsis

int getNumFieldsLayer(string strLayer);

Parameters

Parameter Description
strLayer The layer whose number of fields should be returned.

Description

Returns the number of fields for the layer.

Example

The code will returns the number of objects for the layer "SHAPES".

main()
{
  int i;
  i = GisViewer_ewo1.getNumFieldsLayer("SHAPES");
  DebugN("Number of Fields in Layer:", i);
}

Assignment

GIS Viewer