Erase Procedure

Applies to TestComplete 14.60, last modified on April 22, 2021

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