AI. - Error Handling

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > ! AI - Error Handling >

AI. - Error Handling

AIC.Clear Error

Previous Top Next


MiniRobotLanguage (MRL)

 

AIC.Clear Error

Clear internal Error Register

 

 

Intention

 

The AIC.Clear Error command clears the internal Error-Register, effectively removing any stored error messages.

This is useful for resetting the error state before executing new AI-command.

This command is particularly useful for debugging and should be used to clear the error state before executing new commands.

The last error messages will be stored in the specified variable if provided.

 

 

 

 

Syntax

 

 

AIC.Clear Error[|P1]

AIC.Cle[|P1]

 

 

Parameter Explanation

 

  P1: Optional. The variable where the last error messages will be stored before clearing the Error-Register. If omitted, Error-History is placed on TOS.

 

 

 

Example

 

'***********************************

' AIC.-Sample

'***********************************

AIC.Clear Error|$$ERR

MBX.$$ERR

ENR.

 

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: