How to define a number as a string in visual basic?
Answers
Answered by
0
A string literal is the notation for representing a string value within the text of a computer program. In Visual Basic string literals are enclosed by double quotes. A string in Visual Basic is a sequence of Unicode characters.
Option Strict On Module Example Sub Main() Dim str1 As String = "There are 10" Dim str2 As String = " apples" Console.WriteLine(str1 + str2) Console.WriteLine("The length of the first string is " _ + str1.Length.ToString() + " characters") End Sub End Module
Option Strict On Module Example Sub Main() Dim str1 As String = "There are 10" Dim str2 As String = " apples" Console.WriteLine(str1 + str2) Console.WriteLine("The length of the first string is " _ + str1.Length.ToString() + " characters") End Sub End Module
sukhwindersingh00456:
but you dont ask for syntax
Similar questions