by Dinesh Thakur Category: Menus Procedure and Function

Sub Procedure

Function Procedures

 

Sub Procedure is procedure that performs some action.

Function Procedure also perform some action but also returns some value to point from which it was called

 

Syntax for Sub Procedure is as follows:

Private Sub <procedure name>

‘ Actions to performed

End Sub

Syntax for Function Procedure is as follows:

Private Function Commission()

‘ Action to performed

Commission = <value that to be return>

End Function

 

Example:

Form_Load()

Example:

Val(), FormatPercentage()



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.