Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
Software Crestron 
SIMPL+
®
128 
z SIMPL+
®
Language Reference Guide - DOC. 5797G
FileGetDateNum
Name:
FileGetDateNum
Syntax:
SIGNED_INTEGER FileGetDateNum(FILEINFO Info); 
Description:
Returns an integer corresponding to the day of the month of the file.
Parameters:
INFO – structure containing the information about a found file (refer to "FindFirst" 
on page 
Return Value:
The day of the month as an integer from 1 to 31.
Example: 
(Refer to "File Functions Overview"on page 
)
INTEGER NumDateOfMonth;
FILE_INFO FileInfo; 
INTEGER Found;
StartFileOperations();
Found = FindFirst(“*.dat”, FileInfo );
WHILE (Found = 0)
{
NumDateOfMonth = FileGetDateNum(FileInfo);
PRINT ( “Day of the month of file = %d\n”, NumDateOfMonth);
Found = FindNext(FileInfo);
}
IF ( FindClose() < 0 ) 
PRINT ( “Error in closing find operation\n” );
EndFileOperations();
An example output of this would be “Day of the month of file = 25”.
Version:
SIMPL+ Version 3.00.02 or higher (Pro 2 only)
Control System:
2-Series Only