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 - Visual Basic Tutorial
From the course: Visual Basic Essential Training
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
-
-
-
-
-
-
-
-
-
(Locked)
Understanding strings6m 41s
-
(Locked)
Create string variables4m
-
(Locked)
Concatenation and interpolation2m 56s
-
(Locked)
Search string contents2m 59s
-
(Locked)
Modify string contents3m 3s
-
(Locked)
String creation with StringBuilder5m 39s
-
(Locked)
Compare and equals5m 51s
-
(Locked)
Convert and format numbers to strings8m 4s
-
(Locked)
Implicit covert strings to numbers2m 50s
-
(Locked)
Use Parse and TryParse conversions5m 4s
-
(Locked)
-
-
-
-
-
-
-
-
-
-
-