Documentation (c) 2006-2008 Hobby-Robotics, LLC


Sub statement

Syntax:

Sub name ( argument_list )

...

[ Exit Sub ]

...

End Sub

name

Identifier

argument_list

List of arguments, separated by coma ”,”

[Exit Sub ]

0 or 1 Exit Sub statement, early exit, optional statement

...

Description:

Defines internal Sub procedure that can be called from anywhere in the program using name.

When Sub is called, statements between Sub and End Sub are executed.

Exit Sub statement can be placed anywhere in the body of the Sub to exit it early.