VECGetFieldType()

  VECGetFieldName and VECGetFieldType

Description

VECGetFieldType() is used to retrieve the data type of an attribute field.

Call Signature

string VECGetFieldType ( int/string filespec, int segment_num )

Return Value

string

The attribute data type as a string. See Remarks.

Arguments

int/string filespec:

This can either be the handle returned by DBOpen(), or the name of an open file.

int segment_num:

The vector layer (segment) number being accessed.

int field:

The field number to fetch the type of.

Remarks

The field types are returned as strings, and include the types "Integer", "Float", "Double", "String" and "CountedInt".

See also

GDB file functions

GDB vector file functions

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.