ClearCallStack

Top  Previous  Next

×V4.0Ø

S

A

W

WS

ü

ü

Syntax -

ClearCallStack

       

Description:

This command is used to clear any previous Calls that have been made and return EMUE to a state where there are no Calls on the stack.

 

Note: If a Return statement is encountered after the ClearCallStack command has run, and no other Calls have been made, EMUE will throw an error.

Note: There is a Clear Call Stack button on the Call Stack tab to quickly clear the stack while testing or debugging.

 

Sample:

       The following section uses the ClearCallStack statement to clear all prior Calls.

...

Copy Error "Invalid PtID"

Call LogError

GoTo GetNextPatient

 

:LogError

Let ErrorCount = ErrorCount + 1

Let TotCount = TotCount + 1

LogLine PTID ": " Error

 

If ErrorCount eq 2 Then

       ClearCallStack

Else

       Return

EndIf

 

ExitError

 

 

See Also:

Call

Return