cookie CmSetLastErrorCode

Description

CmSetLastErrorCode sets an error code into the internal global error code variable.

information_weiss_klein26

Please note that with CodeMeter Version 6.10 for programming in C# the function CmSetLastErrorCode has become obsolete. Please use the new function CmSetLastErrorCode2 instead.

If using a CodeMeter Version smaller than 6.10 please use function CmGetLastErrorCode.

 

tmr_02

Triple Mode Redundancy-related information (TMR)

  • C, C++
  • C#
  • Python

Syntax

void CMAPIENTRY CmSetLastErrorCode(int idError)

Parameter

idError specifies the error code to be set.

Syntax

public CmSetLastErrorCode2(ErrorCodes2 Error)

Parameter

Error specifies the error code to be set.

 

Syntax

import cmapi
 
cmapi.CodeMeter().CmSetLastErrorCode(idError: int) -> None

Return

idError specifies the error code to be set.