Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
Software Crestron 
SIMPL+
®
148 
z SIMPL+
®
Language Reference Guide - DOC. 5797G
FindClose
Name:
FindClose
Syntax:
SIGNED_INTEGER FindClose()
Description:
Signifies to the operating system that the find operation has ended.
Parameters:
None.
Return Value:
Returns 0 if successful and –1 if an error occurred.
Example: 
(Refer to "File Functions Overview"on page 
)
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();
Version:
SIMPL+ Version 3.00.02 or higher (Pro 2 only)
Control System:
2-Series Only