VB.NET: Sub (Subroutine)

Post Reply
User avatar
Jason
Site Admin
Posts: 767
Joined: Sun Dec 21, 2025 8:56 pm

Code: Select all

Sub Main()

End Sub

Sub Example_of_sub()

' A sub is a block of VB.NET code that doesn't return anything.   It's used a lot in VB.  Maybe it's used more than 50 percent of the time.  I'm not sure.

' Subs must start with a letter and the rest of it must be letters, numbers, or underscores and they're not case sensitive.

' How it is setup in a very basic form is seen in this block of code.

End Sub

 

POSTREACT(ions) SUMMARY

Post Reply