Crestron simpl plus language ref 사용자 설명서
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G
SIMPL+
®
z 125
FileDay
Name:
FileDay
Syntax:
STRING FileDay(FILE_INFO Info);
Description:
Returns the day of the week of the file as a STRING.
Parameters:
INFO – structure containing the information about a found file (refer to “FindFirst”
on page
on page
for description).
Return Value:
The day of the week of the file is returned in a string. Valid returns are Sunday,
Monday, Tuesday, Wednesday, Thursday, Friday, or Saturday.
Monday, Tuesday, Wednesday, Thursday, Friday, or Saturday.
Example:
(Refer to "File Functions Overview"on page
)
STRING TheDay$[100];
FILE_INFO FileInfo;
SIGNED_INTEGER Found;
StartFileOperations();
Found = FindFirst(“*.dat”, FileInfo );
WHILE (Found = 0)
{
TheDay$ = FileDay(FileInfo);
PRINT ( “Day of file = %s\n”, TheDay$ );
Found = FindNext(FileInfo);
}
IF ( FindClose() < 0 )
PRINT ( “Error in closing find operation\n” );
EndFileOperations();
An example output of this would be “Day of file = Monday”.
Version:
SIMPL+ Version 3.00.02 or higher (Pro 2 only)
Control System:
2-Series Only