Flush Function

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

The Flush function clears the file buffer.

Declaration

Flush(FileVar) Parameters
FileVar [in] Required Variant
Result     Integer  

Description

Writes all of the characters to the desired file, which is associated with the file variable by calling the AssignFile procedure. This function guarantees that all of these characters will be written to the file.

Parameters

The function has the following parameter:

FileVar

Specifies the variable, which is associated with the desired file opened for writing (see Rewrite or Append). The file is associated by calling the AssignFile procedure.

Return Value

Returns 0 if the operation succeeds. If the operation fails, the function returns the error code.

See Also

DelphiScript - List of Supported Routines and Variables
Append
AssignFile
Rename
Rewrite

Highlight search results