Gosub                                                                                                    Statement

 

GOSUB labelName

 

Description

To transfer to another point (defined by the labelName) in the current Sub or Function. The code transferred to may return to the statement following the GOSUB statement by executing a RETURN statement..

 

Example

 

Gosub routine1

...

routine1:

  ....

  ....

Return