Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
Crestron SIMPL+
®
Software 
Language Reference Guide - DOC. 5797G
 SIMPL+
®
 
z 137
FileMonth
Name:
FileMonth
Syntax:
STRING FileMonth(FILEINFO Info);
Description:
Returns the month of the file date as a string.
Parameters:
INFO – structure containing the information about a found file (refer to "FindFirst" 
on page 
Return Value:
The current month is returned in a string. Valid returns are January, February, March, 
April, May, June, July, August, September, October, November, or December.
Example: 
(Refer to "File Functions Overview"on page 
)
STRING TheMonth$[100];
FILE_INFO FileInfo; 
SIGNED_INTEGER Found;
StartFileOperations();
Found = FindFirst(“*.dat”, FileInfo );
WHILE (Found = 0)
{
TheMonth$ = FileMONTH(FileInfo);
PRINT ( “Month of file date = %s\n”, TheMonth$);
Found = FindNext(FileInfo);
}
IF ( FindClose() < 0 ) 
PRINT ( “Error in closing find operation\n” );
EndFileOperations();
An example output of this would be “Month of file date = September”.
Version:
SIMPL+ Version 3.00.02 or higher (Pro 2 only)
Control System:
2-Series Only