|
|
Use this command to delete a file. |
|||||||||
|
Program calls of this command outside of the action part are not allowed. |
||||||||||
Syntax: |
||||||||||
|
delete({STR_EXPR}) or |
||||||||||
I/O parameters:
|
||||||||||
Return value: |
||||||||||
|
||||||||||
Return code: |
||||||||||
|
||||||||||
Example: |
||||||||||
| Declaration of Variables | ||||||||||
10 DOCU_STRING_1=getenv("DATAVIEW_TEMP")
20 DOCU_STRING_2=strcat(DOCU_STRING_1,"/docu.test")
30 if (exists(DOCU_STRING_2,"r")==TRUE)
40 delete(DOCU_STRING_2)
50 endif
|
||||||||||
| Result: | ||||||||||
| If there is a "docu.test" file in your DataView temp directory (and if write access is possible), the file is deleted. | ||||||||||
|
Functions and commands: File Interface |