The following example displays a message indicating if the Visual FoxPro resource file is present in the Visual FoxPro start up directory.
SET PATH TO HOME( )
CLEAR
IF FILE('foxuser.dbf')
WAIT WINDOW 'Visual FoxPro resource file present'
ELSE
WAIT WINDOW 'Visual FoxPro resource file not present'
ENDIF