09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RETURN Finishes execution of a routine<br />

Examples<br />

Arguments<br />

RETURN is used to finish the execution of a routine. If the routine is a function, the<br />

function value is also returned.<br />

errormessage;<br />

Set do1;<br />

.<br />

PROC errormessage()<br />

TPWrite "ERROR";<br />

RETURN;<br />

ENDPROC<br />

The errormessage procedure is called. When the procedure arrives at the<br />

RETURN instruction, program execution returns to the instruction following the<br />

procedure call, Set do1.<br />

FUNC num abs_value(num value)<br />

IF value

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

Saved successfully!

Ooh no, something went wrong!