From the course: Visual Basic Essential Training

Unlock this course with a free trial

Join today to access over 24,500 courses taught by industry experts.

Understand procedures and methods

Understand procedures and methods - Visual Basic Tutorial

From the course: Visual Basic Essential Training

Understand procedures and methods

- [Instructor] As our applications grow larger and more complex, organizing our code becomes essential. Visual Basic provides tools to help us break our application into logical, self-contained sections of code. This makes it easier to develop, debug, and maintain our code. In this video, we'll learn the terms and concepts that define how Visual Basic organizes code. We'll start by defining a procedure. It is a reusable block of statements that perform a task. Every procedure has a name that identifies it. This name is used to call the procedure from other parts of the code. Procedures can accept input values known as parameters, which allows us to pass data into the procedure. There can be zero or more parameters. If a procedure returns a value, that value must conform to a specific data type. Procedures come in four primary categories, Subroutines, what we call Subs, perform a task but don't return a value. Functions perform a task and return a value. Properties provide a way to…

Contents