VECSetField()

  VECSetField

Description

VECSetField() is used to set the value of an attribute field on a shape in a vector layer.

Call Signature

void VECSetField ( int/string filespec, int segment_num, int shape, int field_num, string/double/int ptr field_value )

Return Value

void

This has no return value.

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 shape:

The vector shape being accessed.

int field_num:

The field number or field name to access. Field numbering starts at one.

string/double/int ptrfield_value:

The string, or numeric value to assign to the field. For "CountedInt" type, an integer array must be used. The length of the array is used to set the item count.

See also

GDB file functions

GDB vector file functions

VECGetField()

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