Kill Statement

Deletes a file from a disk.

Syntax:


Kill File As String

پارامېتىر

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).

مىسال:


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

Please support us!