Sub - End Sub
A Sub procedure is a series of nuBasic statements enclosed by the Sub and End Sub statements.
The Sub procedure performs a task and then returns control to the calling code, but it does not return a value to the calling code.
Corresponding to each parameter in the parameter-list is an argument in the procedure call of the argumentlist.
When you call a procedure that accepts one or more parameters you can pass the arguments by position, in the order in which the related parameters appear in the procedure's definition.
In the following example, the procedure studentInfo(name$,age%) is called with its arguments passed by position and delimited by commas:
See also Function