Home » VB.NET Basics » 05 - Strings
5
Equal Command with Text
Using the Equal command with text
If you want text to be represented within a variable then you can use the equals command. See the code below and learn how the equals command is used.
Dim Represent As String
Represent = "This is the result."
MsgBox(Represent)
The main structure when using the equals command is as follows.
[variable] = "[text]"
The variable will then obtain the value of the text.