I am trying to write a code that displays the contents of an array called rates in the ratesLabel using a For...Next statement. I think I have some of the work done.
This is what I have:
I have the click options for my display and exit buttons,
the numbers options for my numbers and products text boxes, and
I have some declaration statements.
Here are my declaration statements
Dim numbers(20) As Integer
Dim products(10) As String
Dim rates() As Decimal = {6.5, 8.3, 4.2, 10.5}
Dim subscript As Integer
numbers(1) = 7
products(2) = "Paper"
For subscript As Integer = 0 To 4
ratesLabel.Text = rates.ToString
Next subscript
Now I don't really know if this is correct or if I am completely off.
Any help will be greatly appreciated.
Thank you.