Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Existing file ???

Status
Not open for further replies.

poupou

Programmer
Jun 12, 2002
6
CA
I would like to know how can I look if some file exist with FoxPro6.

With VB6 I can with:

If fs.exist(PATH) then
fs.delete(PATH)
else
*nothing
end if

but is't possible with FoxPro

Thanks
Redg
 
IF FILE('filename (can include path)')
DO SOMETHING
ELSE
DO SOMETHING ELSE
ENDIF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top