<-- Previous || Up || Next -->

Kill Ignore Errors Function
File Operations Class

Public Function KillIgnoreErrors( _
    ByVal vFileName As Variant _
    ) As Boolean

Delete a file, ignoring any errors that may occur, such as when the file does not exist.

Example:
    StringToFile("Marker.", "Debug.Tmp") = True
    ' Next call deletes Debug.Tmp
    KillIgnoreErrors("Debug.Tmp") = True
    ' Next call does nothing.
    KillIgnoreErrors("Debug.Tmp") = True
See also:
    FileExists Function
    Kill Statement (Visual Basic)
vFileName: Name of the file to be deleted. Function returns False if vFileName is Null or cannot be fixed-up to a String.
Note: Function returns True whether or not the file was successfully deleted.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.