Free Source Code and Tutorials

Custom Search


A procedure is a method that perform a task when it’s called.


There are two types of procedures in VB.Net and they are:


Functionsreturn a value

Sub procedures or Subsdo not return a value


What is a Function? The Function statement is composed of  the name, parameter and the body of a function.

This is the syntax  in performing the Function statement:

  1. [<em>Modifiers</em>] Function <em>FunctionName</em> [(<em>ParameterList</em>)] As ReturnType
  3. Statements.......
  4. End Function


Modifiers: it specify the access level of the function and its values are:


Public, Private, Protected, Friend, Protected Friend and information concerning  overriding,overloading, shadowing and sharing.


FunctionName: point out the name of the function

ParameterList: identifies the list of the parameters

ReturnType: identifies the data type of the variable the function returns

Facebook Comments
(Visited 12 times, 1 visits today)
Share this

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked * © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!

%d bloggers like this: