Kill Statement

Deletes a file from a disk.

Syntax:


DIM sFile แƒกแƒขแƒ แƒ˜แƒฅแƒแƒœแƒ˜ แƒ แƒแƒ’แƒแƒ แƒช

Parameters:

File: Any string expression that contains an unambiguous file specification. You can also use URL notation.

Error codes:

D'oh! You found a bug (text/sbasic/shared/00000003.xhp#err5 not found).

D'oh! You found a bug (text/sbasic/shared/00000003.xhp#err76 not found).

Example:


Sub ExampleKill
    Kill "C:\Users\ThisUser\datafile.dat" ' File must be created in advance
End Sub

Please support us!