In my mind it should have gone like this, text Box takes in integers puts them into variable called "info" and a counter would run a array to take in those numbers, Later the array would run in reverse by way of another counter and spit them out,
I can put in six integers into my text box before I get hit with run time error six, the bane of my life. Debug says it starts here
vb
Option Explicit
Dim info As Double
Dim counter As Integer |
Dim DownCounter As Integer | but I cant see whats
Dim TenNum(9) As Integer | going
| WRONG!!!
Private Sub Command1_Click() |
MsgBox "type in ten Numbers" |
End Sub |
|
Private Sub InputBox_Change() <---------------
info = InputBox
counter = 0
While counter < 10
TenNum(counter) = info
counter = counter + 1
Wend
End Sub
Private Sub PartOne_Click()
DownCounter = 10
While DownCounter > 0
OutputBox.Print TenNum(DownCounter)
DownCounter = DownCounter - 1
Wend
End Sub