Filegetdayofweeknum - Crestron SIMPL+ Reference Manual

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

FileGetDayOfWeekNum

Name:
FileGetDayOfWeekNum
Syntax:
SIGNED_INTEGER FileGetDayOfWeekNum(FILEINFO Info);
Description:
Returns an integer corresponding to the day of the week of file.
Parameters:
INFO – structure containing the information about a found file (refer to "FindFirst"
on page
149
for description).
Return Value:
The day of the week as an integer from 0 to 6; 0 represents Sunday to 6 representing
Saturday.
Example:
(Refer to "File Functions Overview"on page 116)
INTEGER NumDayOfWeek;
FILE_INFO FileInfo;
SIGNED_INTEGER Found;
StartFileOperations();
Found = FindFirst("*.dat", FileInfo );
WHILE (Found = 0)
{
NumDayOfWeek = FileGetDayOfWeekNum(FileInfo);
PRINT ( "Day of week of file = %d\n", NumDayOfWeek);
Found = FindNext(FileInfo);
}
IF ( FindClose() < 0 )
PRINT ( "Error in closing find operation\n" );
EndFileOperations();
An example output of this would be "Day of week of file = 4".
Version:
SIMPL+ Version 3.00.02 or higher (Pro 2 only)
Control System:
2-Series Only
Software
®
SIMPL+
129

Advertisement

Table of Contents
loading

Table of Contents