Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>file()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FILE()


Syntax:     FILE(<expC>)

Purpose:    To determine if a file exists in the Clipper path.

Argument:   <expC> is the file to locate and must include an
            extension.

            The filename may optionally be preceded by a path.

Returns:    A logical value.

            If the file exists, FILE() returns true (.T.).

Usage:      When FILE() executes, the current DOS drive and directory
            are searched first.  If the file is not found and no path
            was specified, the Clipper PATH is then searched.  In no
            case is the DOS path searched.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   ? FILE("Sales.dbf")                    && Result: .F.
   ? FILE("\APPS\DBF\Sales.dbf")          && Result: .T.
   SET PATH TO \APPS\DBF
   ? FILE("Sales.dbf")                    && Result: .T.
   SET PATH TO
   SET DEFAULT TO \APPS\DBF\
   ? FILE("Sales.dbf")                    && Result: .T.


See Also: SET DEFAULT SET PATH

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson