LogiView

Command 'delete'

     

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
delete({STR_EXPR},{"/CLIENT"})

 

I/O parameters:

{STR_EXPR} Name of file to be deleted (including path).
{"/CLIENT"}

Deletes a client-side file.

 

-  
 

Return value:

 
-  
 

Return code:

 
0 No errors during command execution.
 

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