Erase Procedure

Applies to TestComplete 15.63, last modified on April 10, 2024

The Erase procedure deletes the desired file, which is associated with the file variable by calling the AssignFile procedure.

Declaration

Erase(FileVar) Parameters
FileVar [in] Required Variant
Result     None  

Description

Deletes the file, which is associated with the file variable. The specified file must be closed before it is deleted.

Parameters

The procedure has the following parameter:

FileVar

Specifies the file variable, which is associated with the desired file by calling the AssignFile procedure.

See Also

DelphiScript - List of Supported Routines and Variables
AssignFile
Rename

Highlight search results