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.

Create string variables

Create string variables

- [Instructor] We'll start this chapter by looking at how to create a string variable and work with string literals and char characters. Before I do that, I want to point out some minor changes I've made to the Code Explorer application. It now supports formatted text, so you can see you'll get bold text, and it also supports colored fonts, so you can see you've got colorized characters at the beginning of the line and colorized lines across the screen. If you're interested, you can look at the source code to see how that works. I'm using some properties of the text block, which is where I'm showing this text. I'll slide that off to the side of the screen and bring it back in a few minutes. Let's go over here and look at the code. We'll start by looking at how to create a string variable. The easiest way is to use the Dim keyword and then your identifier, and then assign a string literal like I'm doing here. String literals in Visual Basic use a double quote on either end of the text.…

Contents