SubNextToEndSub - nonkit/SmallWikiPad GitHub Wiki

Small Basic Coding Pattern > Graduate Pattern > SubNextToEndSub

SubNextToEndSub

Don't insert null lines between EndSub and the next Sub. Because any code not in subroutines will be included a subroutine Main in Visual Basic code generated with [Graduate] command.

Sample Code

Sub DumpA
  TextWindow.WriteLine(a)
EndSub
Sub DumpB
  TextWindow.WriteLine(b)
EndSub

instead of

Sub DumpA
  TextWindow.WriteLine(a)
EndSub

Sub DumpB
  TextWindow.WriteLine(b)
EndSub

See Also