Subroutines usually perform actions and they don’t return any result. A subroutine is a block of statements that carries out a well-defined task. The block of statements is placed within a set of Sub. . .End Sub statements and can be invoked by name.
In this “The VB.NET Procedure, Function, Exception Handling – Visual Programming” you will learn about the following topics:
- Subroutine
- Procedures
- Sub Procedure
- Passing Parameters by Value
- Passing Parameters by Reference
- Function
- Function Returning a Value
- By Using The Return Statement, By Assigning The Value To The Function Name
- Recursive Function
- Param Arrays
- Passing Arrays as Function Arguments
- Optional Parameter
- Scope
- Block Scope, Procedure Scope, Module Level, Namespace Scope
- Exception Handling
- Unstructured Exception Handling
- On Error GoTo Line, On Error Resume Next, On Error GoTo 0, On Error GoTo -1
- Structured Exception Handling
- Try, Catch, Finally, Throw
- Multiple Catch
- Throwing a Custom Exception
- Exception Classes in .Net Framework
==== Point to Note ====
If you like to contribute, you can mail us BCA Notes, BCA Question Collections, BCA Related Information, and Latest Technology Information at [email protected].
See your article appearing on BCA Notes (Pokhara University) main page with your designation and help other BCA Students to excel.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
0 Comments