Incrementing, well sort of... [resolved]
Well, i have this coding that doesn't work, its meant to simply write the current "i" plus a comma to the textbox, but, it is not working, where have i gone wrong on this ?
VB Code:
Private Sub Command1_Click()
Dim i As Integer
For i = 1 To i = 49
Text1.Text = Text1.Text & "," & i
Next
End Sub
Re: Incrementing, well sort of...
For i = 1 To 49
Don't know where you got For i = 1 To i = 49 from.
Re: Incrementing, well sort of...
Change it too:
VB Code:
Private Sub Command1_Click()
Dim i As Integer
For i = 1 To 49
Text1.Text = Text1.Text & "," & i
Next i
End Sub
Current i and a comma only :)
Cheers,
RyanJ
Re: Incrementing, well sort of...
Re: Incrementing, well sort of...
I'm stupid, forgot the For i = 1 to i = 49 being incorrect...
Guess its the lack of sleep...
Good rep for everyone for pointing that out,lol