Crestron simpl plus language ref 사용자 설명서

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