The Function statement is used to declare the name, parameter and the body of a function. VB.Net has two types of procedures −įunctions return a value, whereas Subs do not return a value. After the procedure is executed, the control returns to the statement calling the procedure. A procedure is a group of statements that together perform a task when called.