Manual:DIL Manual/delunit()
Jump to navigation
Jump to search
Function: integer delunit( filename : string ) ;
filename The name of the Unit file to be deleted. Return Returns an integer TRUE if deleted FALSE if not delunit is used to delete files that are used with the 'Restore' and 'store' functions.
Example: ---~---~---~---~---~---~---~---~---
dilbegin chest_del ("arg : string /*filename to be deleted*/); var ret:integer;/*to hold the return value if deleted or not*/ code { ret:= delstr("chest.file"); if (!ret) { log ("File not deleted."); quit; }
sendtext("Chest file deleted[&]n",self); quit;/*dil delete routine done } dilend
---~---~---~---~---~---~---~---~---
See Also Restore a Unit from a Unit file and Store Units to a Unit file.
---~---~---~---~---~---~---~---~---