EasyManua.ls Logo

Crestron SIMPL+ - FileGetMinutesNum Function

Crestron SIMPL+
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G SIMPL+
®
z 131
FileGetMinutesNum
Name:
FileGetMinutesNum
Syntax:
SIGNED_INTEGER FileGetMinutesNum(FILEINFO Info);
Description:
Returns an integer corresponding to the number of minutes in the file time.
Parameters:
INFO – structure containing the information about a found file (refer to "FindFirst"
on page 149 for description).
Return Value:
The number of minutes from 0 to 59.
Example:
(Refer to "File Functions Overview"on page 116)
INTEGER NumMinutes;
FILE_INFO FileInfo;
SIGNED_INTEGER Found;
StartFileOperations();
Found = FindFirst(“*.dat”, FileInfo );
WHILE (Found = 0)
{
NumMinutes = FileGetMinutesNum(FileInfo);
PRINT ( “Minutes of file time = %d\n”, NumMinutes);
Found = FindNext(FileInfo);
}
IF ( FindClose() < 0 )
PRINT ( “Error in closing find operation\n” )
;
EndFileOperations();
An example output of this would be “Minutes of file time = 33”.
Version:
SIMPL+ Version 3.00.02 or higher (Pro 2 only)
Control System:
2-Series Only

Table of Contents

Other manuals for Crestron SIMPL+

Related product manuals