Utilities.FileSetDate Method

Applies to TestComplete 14.0, last modified on January 23, 2019
This method is obsolete. See the Remarks section below.

Description

Use the Utilities.FileSetDate method to set the date and time attributes for the file with the specified Handle. The file handle is returned by the FileCreate or FileOpen function.

Declaration

Utilities.FileSetDate(HandleAge)

Handle [in]    Required    Integer    
Age [in]    Required    Integer    
Result Integer

Applies To

The method is applied to the following object:

Parameters

The method has the following parameters:

Handle

Specifies the handle of the file whose date and time attributes you want to set.

Age

Specifies an integer value that holds the date and time to be set. To convert a Variant value to this format, use the DateTimeToFileDate function.

Result Value

If the file’s date and time attributes have been set successfully, the function returns 0. Otherwise, it returns a Windows error code.

Remarks

This method is obsolete. It is supported for backward compatibility only. To set the date and time attributes, use the aqFile.SetLastWriteTime or aqFileInfo.SetLastWriteTime method.

See Also

Working With Dates
aqFile.SetLastWriteTime Method
SetLastWriteTime Method
aqFile.SetLastAccessTime Method
SetLastAccessTime Method
aqFile.SetCreationTime Method
SetCreationTime Method
aqFile.Create Method
aqFile.OpenBinaryFile Method
aqFile.OpenTextFile Method

Highlight search results