Call

Top  Previous  Next

S

A

W

WS

ü

ü

The following commands have been implemented in EMUEScript exactly as they are implemented in OLIE™:

 

Syntax -

Call <Label>

       Where:

               <Label> is a literal string

 

Description:

This command is used to redirect script execution to another point in the script, defined by <label>, with the intention of having execution return back to the calling location.  This command is useful when the same code will be used more than once in the same script.

 

Sample:

       The following section uses the Call statement to call the subroutine that logs out error information.

...

Copy Error "Invalid PtID"

Call LogError

GoTo GetNextPatient

 

:LogError

Let ErrorCount = ErrorCount + 1

Let TotCount = TotCount + 1

LogLine PTID ": " Error

Return

 

Return

 

 

See Also:

Return