Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete File Errors
Message
 
 
To
26/04/2005 08:42:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01008399
Message ID:
01008421
Views:
17
>Since Delete File does not return any value what is the best way to trap for errors when Delete File fails?
DECLARE Long DeleteFile IN WIN32API string
lcFileName = FULLPATH(lcFileName)
IF DeleteFile(lcFileName) = 0
  * File has not been deleted
ENDIF
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform