This example illustrates how to detect the type of a file via its file handle.
local integer tfid
local string filetype
tfid = DBOpen( GetPCIHOME() + "/demo/irvine.pix", "r")
filetype = FDType(tfid)
Print filetype
Call DBClose(tfid)
PIX
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.