1190 if (iField < 0 || iField >= psDBF->nFields)
1193 if (pnWidth != NULL)
1194 *pnWidth = psDBF->panFieldSize[iField];
1196 if (pnDecimals != NULL)
1197 *pnDecimals = psDBF->panFieldDecimals[iField];
1199 if (pszFieldName != NULL)
1203 strncpy(pszFieldName, (
char *)psDBF->pszHeader + iField * 32, 11);
1204 pszFieldName[11] =
'\0';
1205 for (i = 10; i > 0 && pszFieldName[i] ==
' '; i--)
1206 pszFieldName[i] =
'\0';
1209 if (psDBF->pachFieldType[iField] ==
'L')
1212 else if (psDBF->pachFieldType[iField] ==
'D')
1215 else if (psDBF->pachFieldType[iField] ==
'N' || psDBF->pachFieldType[iField] ==
'F')
1217 if (psDBF->panFieldDecimals[iField] > 0 || psDBF->panFieldSize[iField] > 10)