-
Step 1
Open a new Visual Basic program in your software development environment.
-
Step 2
Declare a variable of the Integer data type and assign a value to it by typing the following code in the Visual Basic program:
Dim myVariable As Integer
myVariable = 777 -
Step 3
Use the CStr function to convert the Integer variable to a string by typing the following code in your program:
Print CStr(myVariable) -
Step 4
Compile and run your Visual Basic program and it will output "777" to the screen.










