11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Caché</strong> <strong>ObjectScript</strong> CommandsGOTOTransfers control.GOTO:pcGOTO:pc goargument,...G:pcG:pc goargument,...where goargument is:location:pcArgumentspclocationOptional — A postconditional expression.Optional — The point to which control will be transferred.DescriptionThe GOTO command has two forms:• Without an argument• With an argumentGOTO Without an ArgumentGOTO without an argument resumes normal program execution after <strong>Caché</strong> encounters aBREAK command in the currently executing code. You can use the argumentless GOTOonly from the programmer prompt.GOTO With an ArgumentGOTO with the argument location transfers control to the specified location. If you specifya postconditional expression on either the command or the argument, <strong>Caché</strong> transfers controlonly if the postconditional expression evaluates to TRUE (non-zero).You can use GOTO location from the programmer prompt to resume at a different location.You can specify a $CASE function as a GOTO command argument.46 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!