SetFileTimes Method (RUNTIME)
10.6A
The SetFileTimes method stores the OS date and time for an existing file. This method uses the following format:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
Optional. A Program Execution Label.
Required. A RUNTIME object.
Optional. A Numeric Variable that returns the pass\failure for the execution of this method.
Flags Affected: EOS, OVER, ZERO
Note the following:
The EOS flag is always set to FALSE.
The ZERO flag is set to be TRUE if the {return} value is zero. Otherwise, the ZERO flag is set to be FALSE.
The OVER flag is set to be TRUE if the {return} variable is too small to receive the method result without truncation. Otherwise,The OVER flag is set to be FALSE.
If the method executes successfully, the {return} value is zero. If the method fails, the {return} value is a non-zero value described as follows:
|
Return Value |
Description |
|
1 |
The SetFileTimes method is not supported by the PL/B runtime. |
|
2 |
Invalid date/time for the {createtime} object. |
|
3 |
Invalid date/time for the {accesstime} object. |
|
nnnn |
Windows OS error code values. See the Sunbelt PL/B Runtime Reference' under "Error Messages\O/S Error Codes". |
Example:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
See Also: RUNTIME, RUNTIME Methods, Method Syntax
![]() |