Findnext - Crestron SIMPL+ Reference Manual

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

Advertisement

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

FindNext

Name:
FindNext
Syntax:
SIGNED_INTEGER FindNext(FILE_INFO info)
Description:
This command continues the current directory for file(s) matching the file
specification in the "FindFirst" command.
Parameters:
INFO – structure containing the information about a found file (refer to "FindFirst"
on page
149
for description).
Return Value:
Returns 0 if a file is found matching the specification and –1 if an error occurred.
Example:
(Refer to "File Functions Overview"on page 116)
FILE_INFO FileInfo;
SIGNED_INTEGER Found;
StartFileOperations();
Found = FindFirst("*.dat", FileInfo );
WHILE (Found = 0)
{
PRINT ( "%s\n", FileInfo.Name );
Found = FindNext(FileInfo);
}
IF ( FindClose() < 0 )
PRINT ( "Error in closing find operation\n" );
EndFileOperations();
NOTE: FindNext must be followed by a FindClose.
Version:
SIMPL+ Version 3.00.02 or higher (Pro 2 only)
Control System:
2-Series Only
Software
®
SIMPL+
151

Advertisement

Table of Contents
loading

Table of Contents