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.

Work with variables and constants

Work with variables and constants - Visual Basic Tutorial

From the course: Visual Basic Essential Training

Work with variables and constants

- [Instructor] One of the first things you need to learn in a new programming language is how to store data in memory. To gain a complete understanding of variables, this chapter will cover three closely related topics, variables, constants, and literal values. By exploring these concepts, you'll learn how to store, manage, and utilize data effectively in your programs, while also understanding the differences between changeable variables, fixed constants, and the raw values represented by literals. .NET and Visual Basic are strongly type systems, meaning that every variable, constant and literal, must have a specific data type. This ensures that the type of data being stored or processed is explicitly defined, providing better reliability and error checking during both development and runtime. .NET provides thousands of types, all of which are fully accessible in our VB code. To make it easier for developers, Visual Basic offers a set of rudimentary types with simple VB specific…

Contents