Products Downloads


French version


 

 

This function is used to create a rule violation.

 

Context

  • Windows client,

  • Windows server.

 

Parameters

 

ProgramName

Name of the program in which the violation is raised.

 

ExpLineNo

Line number in the program's expanded source code.

 

LineNo

Line number in the program's source code.

 

MruName

Name of the management rule.

 

MruLineNo

Line number in the management rule source.

 

RuleId

Internal ID of the infringed rule.

 

Message

Custom message associated with the violation, or *BLANK.

 

ReturnCode

Return code for the operation:

*TRUE   if the operation was completed successfully.

*FALSE  if it was not.

 

Example

BEGIN_PROCEDURE SOURCE

...

BOOL       RC

ALPHA(100) MESSAGE

...

PARAM PGMNAME PGMTYP EXPLINENO LINENO MRUNAME MRULINENO SRVNAME LINESOURCE

...

IF LINESOURCE...

   MESSAGE = ...

   CALL_DLL 'qualmgrtoolbx' 'QMCreateViolation' PGMNAME EXPLINENO LINENO  –

               MRUNAME MRULINENO  'myrule' MESSAGE RC

END

...

 

 

The QualMgrToolBx DLL

 

↑ Top of page

  • Aucune étiquette