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 - 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
-
-
-
-
-
-
-
-
(Locked)
Work with variables and constants8m 17s
-
(Locked)
Use the code explorer project3m 26s
-
(Locked)
Declare a variable5m 35s
-
(Locked)
Variables and .NET types3m 36s
-
(Locked)
Naming your variables2m 19s
-
(Locked)
Understand the variable scope: What code can access the variable4m 19s
-
How data conversion works7m 49s
-
(Locked)
Convert numeric values5m 35s
-
(Locked)
Create custom constants1m 29s
-
(Locked)
Work with built-in constants3m 36s
-
(Locked)
Work with enum values3m 45s
-
(Locked)
Create a custom enum1m 35s
-
(Locked)
-
-
-
-
-
-
-
-
-
-
-
-