Question: USING VISUAL BASIC You are to create an array of 10 elements, String type, and load 10 unique values into the array, one value per
USING VISUAL BASIC
You are to create an array of 10 elements, String type, and load 10 unique values into the array, one value per element. Your program must then output those values into a Listbox control.
Note: Your program MUST use a loop to load the data into the array
myarray(0) = "Dog"
myarray(1) = "cat"
These methods above are NOT acceptable!
(Hint: use InputBox function
myarray(index) = Inputbox() )
and another loop to output it to the Listbox control. How your program acquires the information is up to you, but processing must be done using loops.
Also note:
Dim myvalues() As String = {"val1", "val2"}
Is NOT an acceptable way to load you array for this assignment as this method doesn't utilize a loop.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
