FortranGIS  Version2.5
integer function, public shapelib::dbfgetfieldinfo ( type(shpfileobject), intent(inout)  hshp,
integer, intent(in)  ifield,
character(len=*), intent(out)  pszfieldname,
integer, intent(out)  pnwidth,
integer, intent(out)  pndecimals 
)

It returns information about a dbf field.

The return value is the type of the requested field, which is one of the ft* constants. The field type returned does not correspond one to one with the xBase field types. For instance the xBase field type for Date will just be returned as being ftinteger. It returns -1 if the shape object is not valid.

Parameters
[in,out]hshpshapefile object to query
[in]ifieldnumber of field to query, in the interval 0, nfield - 1
[out]pszfieldnamethe name of the field, it can be up to 11 characters long
[out]pnwidththe width of the field in characters
[out]pndecimalsthe number of decimals in a floating point representation, nonzero only for fields of type ftdouble

Definition at line 733 of file shapelib.F90.