Tests for the existence of a file. Returns true if the file exists and false if it doesn’t.

Syntax

<oRef>.exists(<filename expC>)

<oRef>

A reference to a File object.

<filename expC>

The name of the file to search for. Wildcard characters are not allowed; you must specify the actual file name.

If you specify a file without including its path, dBASE Plus looks for the file in the current directory, then in the search path(s) you specified with SET PATH, if any. If you specify a file without including its extension, dBASE Plus assumes no extension.

Property of

File

Description

Use exists( ) to determine whether a file exists. You can use either the long file name or the short file name.