answersLogoWhite

0

A string is a data set in the form of alphanumeric characters and symbols. For example, if you wanted to use a string to concatenate and display a welcome message displaying a user's name, your code would look something like this:

Dim WelcomeMessageString as String = "Welcome to the string demonstration "

Dim FormResponseString as String = form1.text

Message(WelcomeMessageString + FormResponseString)

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What function are used for string length in visual basic?

string length is a function use to check the lenght of a string i.e number of alphabets in a word or sentence.


What is trunicate?

Trunicate is when you trim a string in visual basic


In Visual Basic how do you place a tab into a string with the and sign?

In visual Basic, the tab character has several representations:ChrW(9)vbTabControlChars.TabConvert.ToChar(Keys.Tab)Of these, the last is supported by all .NET languages (including C# where '\t' can also be used).To insert a tab into a Visual Basic string:Dim text As String = "abc"text.Insert (1, vbTab)To insert an ampersand, use the character literal '&':text.Insert (2, '&');


How do you use vbTab in visual basic?

vbTab is treated like a string. It's value is simply the tab character (typically ascii value of 9). You can use it just like any other string variable.


Reversing characters in a string in visual basic?

To reverse characters in a string in Visual Basic, you can use the StrReverse function, which takes a string as an argument and returns the reversed version. For example, Dim reversedString As String = StrReverse("Hello") would result in reversedString containing "olleH". Alternatively, you can convert the string to a character array, reverse it using Array.Reverse, and then convert it back to a string. Here's a simple example: Dim inputString As String = "Hello" Dim charArray() As Char = inputString.ToCharArray() Array.Reverse(charArray) Dim reversedString As String = New String(charArray)


What is the correct coding for converting a string to a double in visual basic 2010?

Dim i as double = CDbl("12")


What is string function visual basic?

A string is a line of text. For example: Dim example As String = "whatever text you want" Would make a string that says "whatever text you want" Later, you can use this for a msgbox or textbox Example: TextBox1.Text = example '(that is the string we made) or MsgBox(example, MsgBoxStyle.Information, "Note!") '(would display a msgbox containing the text in the string)


How do you display a quotation in visual basic?

1. Make a textbox with a " in it. 2. Dim quotation As String = TextBox1.Text 3. To say "Hello" use - MsgBox(quotation & "Hello" & quotation)


What is visual basic control?

Visual Basic Controls work on Visual Studio for Visual Basic and Applications that made by Visual Basic.


Why was visual basic made?

Visual basic was made to help ease the development of Windows applications. With it's easy to use language and environment, anyone can learn visual basic in a matter of time.


What is the properties of visual basic?

Properties are like variables, but they use a Get and Set. This is how to link a private variable to a public property (i=variable, IProp=property)Private i as String = ""Public Property IProp()GetReturn iEnd GetSet(Val as String)i=ValEnd SetEnd Property


What are the parts and use of visual basic 2008?

no comment