Erase Procedure

Applies to TestComplete 15.45, last modified on December 01, 2022

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