FDFilename

Demonstrates how to retrieve the name of a file from a file handle.

Remarks

This example illustrates how to return the name of a file from a known and valid file handle.

Code

 local int fd
 local string filename

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

 filename = FDFileName( fd )

 print filename

 call DBClose(fd)

Output

C:\pci\demo\irvine.pix

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