Define a sub routine and call it : Sub « Class Module « VB.Net Tutorial






Option Strict On
 Imports System
 
 Module Module1
    Sub Main( )
       Console.WriteLine("In Main! ")
       SomeMethod( )
       Console.WriteLine("Back in Main( ).")
    End Sub 'Main

    Sub SomeMethod( )
       Console.WriteLine("Greetings from SomeMethod!")
    End Sub 

 End Module
In Main!
Greetings from SomeMethod!
Back in Main( ).








6.1.Sub
6.1.1.Define a sub routine and call it
6.1.2.Sub procedure that prints payment information.