FortranGIS  Version2.5
integer function, public shapelib::dbfgetfieldindex ( type(shpfileobject), intent(in)  hshp,
character(len=*), intent(in)  pszfieldname 
)

It returns the index of the field matching the name.

The comparison is case insensitive, however lengths must match exactly. It returns -1 if the field is not found or if the shape object is not valid. This procedure is available only with shapelib version 1.2.10 or later.

Parameters
[in]hshpshape object to query
[in]pszfieldnamefield name to search

Definition at line 713 of file shapelib.F90.