Function
EN
Version 1.90
@CheckHandle
Agent
Database
Debugging
EDI
Folder
Misc
Note
NotesSystem
OSFile
SAP/APPC
SQL
System
View
Syntax
@CheckHandle(VIEWHANDLE1);
@CheckHandle(NOTEHANDLE1);
@CheckHandle(DBHANDLE1);
@CheckHandle(FILEHANDLE1);
@CheckHandle(EDIHANDLE1);
@CheckHandle(SQLHANDLE1);
@CheckHandle(SQLFETCHHANDLE1);
@CheckHandle(SAPCOMHANDLE1);
@CheckHandle(SAPFETHANDLE1);
@CheckHandle(AGENTHANDLE1);
@CheckHandle(MULTISETVARHANDLE1);
@CheckHandle(MULTIGETVARHANDLE1);
@CheckHandle(MUTEXSEMHANDLE1);
Description
Checks whether VIEWHANDLE/NOTEHANDLE/DBHANDLE/FILEHANDLE… VIEWHANDLE1/NOTEHANDLE1/DBHANDLE1/FILEHANDLE1… is an open handle. If yes, TRUE returned, otherwise FALSE. FILEHANDLE can only be checked as of version 1.93.
Example: @CheckHandle(VIEWHANDLE1)
if(@CheckHandle(VIEWHANDLE1)
{
@LogReport("VIEWHANDLE1 is a valid and open VIEWHANDLE");
}
else
{
@LogReport("VIEWHANDLE1 is not a valid or open VIEWHANDLE");
}
Outputs the corresponding message to the server console and the log file. The other handles can be checked in exactly the same way.
Note : This text was machine-translated and may contain inaccuracies.
