Secret ingredients to quality software

VB.NET Code - Do you know not to put Exit Sub before End Sub?

Last updated by SSW.Rules.SharePointExtractor on 22 Feb 2021 02:24 am (9 months ago) See History

This is often a bad practice if you already are ending Sub you don't need another line.

Sub MySub

End Sub
Exit sub

Figure: Bad example

Sub MySub

End sub

Figure: Good example

Adam CoganAdam Cogan

We open source. Powered by GitHub