Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

FileSetTime

  • Last UpdatedJul 18, 2023
  • 1 minute read

Sets the time on a file.

Note: In order for this function to work, the file needs to first be opened in write or read/write mode.

Syntax

FileSetTime(File, iTime)

File:

The file number.

iTime:

The new file time, in the Plant SCADA time/date variable format.

Return Value

0 (zero) if successful, otherwise an error is returned.

FileOpen, FileClose, FileGetTime

Example

File = FileOpen("[data]:report.txt", "r+");
! set the file to the current time
FileSetTime(File,TimeCurrent());
FileClose(File);

See Also

File Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in