In this tutorial I show you how to use functions, subroutines, and variables in Visual Studio with Visual Basic. I describe that functions and subroutines are methods that allow a program to perform specified tasks. Using a simple calculator example, I show how subroutines and functions work and I present the syntax to work with functions and subroutines in Visual Basic. I also describe the difference between a subroutine and function in Visual Basic; namely, functions return an output while subroutines do not directly return output. The scope of methods are also discussed (i.e., private and public functions and subroutines). Further, the tutorial describes how to use parameters in functions and subroutines. I also describe how to create variables in Visual Basic using Dim. Variable types are mentioned.
- 9 жыл бұрын
Tutorial 4: Introduction to Functions, Subroutines, and Variables in Visual Basic
- Рет қаралды 16,754
Пікірлер: 4