-
Notifications
You must be signed in to change notification settings - Fork 0
SubNextToEndSub
Nonki Takahashi edited this page May 18, 2019
·
5 revisions
Small Basic Coding Pattern > Graduate Pattern > 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.
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
Copyright © 2017-2019 Nonki Takahashi.
This work is licensed under a Creative Commons Attribution 4.0 International License.