FDType

Demonstrates how to retrieve the type of an opened file.

Remarks

This example illustrates how to detect the type of a file via its file handle.

Code

 local integer tfid 
 local string filetype 

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

 filetype = FDType(tfid)

 Print filetype

 Call DBClose(tfid)

Output

PIX

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