>Since Delete File does not return any value what is the best way to trap for errors when Delete File fails?
TRY .. CATCH .. ENDTRY or a dummy ON ERROR routine before the delete and reset the ON ERROR afterwards.
Update: for VFP6 it will have to be the dummy ON ERROR option:
ON ERROR lDelFailed = .T.
lDelFailed = .F.
DELETE FILE (somefile)
IF lDelFailed
ENDIF
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.