From the course: Visual Basic Essential Training
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Tips to make literals pop in the editor - Visual Basic Tutorial
From the course: Visual Basic Essential Training
Tips to make literals pop in the editor
- I've got another tip for you, it'll help you learn about identifiers and literals. First, let's review what we know. On line six, I'm declaring this variable with the four parts. Dim for declaration, counter as the identifier. Here's another identifier and so on. The data type and then the initializer. And for the initializer I'm using a literal. In this case it's an integer literal, this is a double literal. So the tip is that you can change the default color of the literal and of the identifier from the black text to another color. It can help you see where they live in the code. Let's do that by going to Tools, Options, go to Environment, Fonts and Colors. And here's the literal and here's the identifier. So, I'll start by changing the literal. I'll go here, I'll go to change the background to yellow. I'll dial in a lighter color of yellow like that, and then click on OK. And everywhere there's a literal value in…
Contents
-
-
-
-
-
-
-
-
-
Work with variables and constants4m 56s
-
Use the Code Explorer project1m 59s
-
Declare a variable6m 30s
-
Tips to make literals pop in the editor2m 34s
-
Work with custom and built-in constants3m 54s
-
Understand variable scope5m 42s
-
Understand numeric to numeric conversions5m 54s
-
Convert numeric values5m 43s
-
Convert and format numbers to string6m 39s
-
Convert and parse string to numbers5m 59s
-
Work with strings7m 11s
-
Work with dates and times9m 21s
-
Challenge: Strings, dates, and parsing52s
-
Solution: Strings, dates, and parsing2m 5s
-
-
-
-
-
-
-
-