VECGetFieldDesc

Demonstrates how to retrieve descriptions of fields.

Remarks

This example illustrates how to print out the descriptions of all the fields on a given layer.

Code

 local integer tfid, integer layer, integer i 

 try
    tfid = DBOpen( GetPCIHOME()+"/demo/irvine.pix", "r")

    layer = 31

    for i = 1 to VECGetFieldCount(tfid, layer)
    print "Field ", VECGetFieldName( tfid, layer, i ), " Description: ",\
          VECGetFieldDesc(tfid, layer, i)
    endfor
    call DBClose(tfid)
 onerror
   print "Error: "+ GetLastErrorMessage()
 endonerror

Output

Field AREA Description:
Field PERIMETER Description:
Field LULC# Description:
Field LULC-ID Description:
Field ATTRIBUTE Description:
Field GROUP Description:
Field ArcIdList Description:

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