When you want to put a file in a certain location, you may want to check if it is possible to write to that location. You might not have write permission, the location might not exist or a file with the same name allready exists and cannot be overwritten because it is in use. With the code below, you can check this out:
* FUNCTION FILEOVERWRITE()
PARAMETERS cGo
fhandle =FCREATE(cGo)
IF fhandle > -1
=FCLOSE(fhandle)
DELE FILE (cGo)
RETURN .T.
ELSE
RETURN .F.
ENDIF
Aug 7, 2008
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2008
(3)
- ▼ August 2008 (2)
-
►
2006
(6)
- ► October 2006 (1)
- ► September 2006 (2)
1 comment:
This is great info to know.
Post a Comment