RETURN

Top  Previous  Next

Keyword Description

Return from subroutine call

Class

Action word

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

 

 

 

Syntax

RETURN

 

Example

Sample code

Call a subroutine named MYSUB from any SIG page like this:

DO MYSUB 

 

' begin body of the subroutine on the Resources page. Note the :

MYSUB:

' do some work here

RETURN  ' resume processing on the line just past the sub call

 

ThumbTack white

Use subroutines to minimize repetitive code. Sub body is always located on the Resources page. There, the sub name is followed by a colon to indicate this is the beginning of the body of a subroutine. RETURN forces processing to resume just below the sub routine Call.