ErrorFlagsQuery

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalBoolean ErrorFlagsQuery( SalNumber nFlags )

The ErrorFlagsQuery tells whether all flags in an error flag set are on.

Parameters

Name Description
SalNumber nFlags Set of flags to query Multiple flags can be specified by combining them with the Or (|) operator.

Returns

The return value is TRUE if all flags in nFlags are currently on, FALSE otherwise

Example

If ErrorFlagsQuery( ERROR_LogToFile )
   Call SalFileOpen( hFile, sErrorFile )
   Call SalFilePutStr( hFile, sMessage )
   Call SalFileClose( hFile )
C# code
// Beep with different sounds depending on error severity
if (Int.ErrorFlagsQuery(Const.ERROR_Beep)) 
{
	if (sErrorLevel == Const.ERROR_LevelCritical) 
	{
		Sal.MessageBeep(Sys.MB_IconStop);
	}
..............