Goto                                                                                                        Statement

 

GOTO labelName

 

Description

To transfer control within the current Sub or Function to the label statement which has the label of labelName. Don't expect much respect from other programmers if you use this frequently.

 

Example

If count=5 then

  GoTo NoMoreCalculations

End if

.........

NoMoreCalculations:

......