|
-
Jun 2nd, 2005, 02:56 PM
#1
Thread Starter
Frenzied Member
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
Last edited by thegreatone; Jun 2nd, 2005 at 03:16 PM.
Zeegnahtuer?
-
Jun 2nd, 2005, 03:06 PM
#2
Re: Incrementing, well sort of...
For i = 1 To 49
Don't know where you got For i = 1 To i = 49 from.
-
Jun 2nd, 2005, 03:07 PM
#3
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
-
Jun 2nd, 2005, 03:08 PM
#4
Lively Member
Re: Incrementing, well sort of...
-
Jun 2nd, 2005, 03:15 PM
#5
Thread Starter
Frenzied Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|