Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[VB2008] Can someone fix my loop

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Mon Mar 10, 2008 3:36 pm    Post subject: [VB2008] Can someone fix my loop Reply with quote

Basically I just my message box to say Hello 5 times. But the code im trying isnt working.


Code:

Dim i as integer
i=0

for i =1 to 5

msgBox("Hello")
i = +1

next i
Back to top
View user's profile Send private message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Mon Mar 10, 2008 3:39 pm    Post subject: Reply with quote

Do you want it to say message box 5 times and hit ok every time?

Just paste
Code:
MsgBox("Hello")
5 times
_________________
Back to top
View user's profile Send private message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Mon Mar 10, 2008 3:45 pm    Post subject: Reply with quote

AndrewMan wrote:
Do you want it to say message box 5 times and hit ok every time?

Just paste
Code:
MsgBox("Hello")
5 times


Ya I know I could do that. But I want to learn how do loops just in case I had to use messagebox 10,000 times.
Back to top
View user's profile Send private message
です
Newbie cheater
Reputation: 0

Joined: 09 Feb 2008
Posts: 20

PostPosted: Mon Mar 10, 2008 6:29 pm    Post subject: Reply with quote

Remove
Code:
i = +1
Back to top
View user's profile Send private message
Heartless
I post too much
Reputation: 0

Joined: 03 Dec 2006
Posts: 2436

PostPosted: Mon Mar 10, 2008 6:44 pm    Post subject: Re: [VB2008] Can someone fix my loop Reply with quote

Code:

Dim i as integer
i = 0

for i = 1 to 5

msgBox("Hello")

next i

_________________
What dosen't kill you, usually does the second time.
Back to top
View user's profile Send private message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Mon Mar 10, 2008 7:00 pm    Post subject: Re: [VB2008] Can someone fix my loop Reply with quote

HornyAZNBoy wrote:
Code:

Dim i as integer
i = 0

for i = 1 to 5

msgBox("Hello")

next i


Thanks it worked.

+REP
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites