It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

pause programmaticaly

Moderator: dafunkymunky

pause programmaticaly

Postby cooper12000 on Sat Aug 02, 2008 8:38 am

hey all i need to pause a program programaticaly rather than using break points and or message boxes with rude comments to myself in. Is this possable?
Thanks Cooper
cooper12000
 
Posts: 4
Joined: Sat Aug 02, 2008 8:35 am

Postby chubzyko on Wed Aug 06, 2008 5:05 pm

what do you mean pause a program? be more specific dude.
"Failure is the key to success, so try and try until you succeed."
User avatar
chubzyko
100+ Club
 
Posts: 104
Joined: Wed Jul 30, 2008 10:48 pm
Location: Marikina City, Philippines

Postby cooper12000 on Wed Aug 06, 2008 5:26 pm

ok if i allow the prog to run normaly i get a different result than if i use a break point and make it pause obviously i cant use a break point when i compile it for distribution (around the house) and i cant realy have a message box.

i was wondering would somthing like
while (some time function)<10
loop

would work
cooper12000
 
Posts: 4
Joined: Sat Aug 02, 2008 8:35 am

Postby chubzyko on Wed Aug 06, 2008 5:31 pm

like a delay?
"Failure is the key to success, so try and try until you succeed."
User avatar
chubzyko
100+ Club
 
Posts: 104
Joined: Wed Jul 30, 2008 10:48 pm
Location: Marikina City, Philippines

Postby cooper12000 on Wed Aug 06, 2008 6:14 pm

i guess
cooper12000
 
Posts: 4
Joined: Sat Aug 02, 2008 8:35 am

Postby chubzyko on Wed Aug 06, 2008 6:17 pm

why dont you use a timer then?
"Failure is the key to success, so try and try until you succeed."
User avatar
chubzyko
100+ Club
 
Posts: 104
Joined: Wed Jul 30, 2008 10:48 pm
Location: Marikina City, Philippines

Postby cooper12000 on Wed Aug 06, 2008 6:22 pm

because untill each time the timer is called the prog will run;)
cooper12000
 
Posts: 4
Joined: Sat Aug 02, 2008 8:35 am

Postby chubzyko on Wed Aug 06, 2008 6:28 pm

well, go to this link. It's the best vb programming site on the web. Lots of vb programming masters will answer you there. Post your question there.

http://www.vbcity.com
"Failure is the key to success, so try and try until you succeed."
User avatar
chubzyko
100+ Club
 
Posts: 104
Joined: Wed Jul 30, 2008 10:48 pm
Location: Marikina City, Philippines

Postby sendtoanurag on Fri Aug 08, 2008 6:35 am

Well dude then there's a problem in ur code.
Because a program has to run same way whethetr with breakpoints or without.

So try to debug the program properly may be by putting more breakpoints and checking at which point ur result gets changed.

I m sure as i ve faced this problem before a lot
sendtoanurag
 
Posts: 29
Joined: Tue Mar 18, 2008 2:51 pm

Postby mmkhetan on Sun Aug 24, 2008 6:50 am

Why not use a messagebox showing the current value of the variable you would like to check, together with some identification tag of that location. You can put as many as you like, at locations where you think the problem may be there. if you feel the variable value is ok then press yes else stop and trouble shoot
mmkhetan
 
Posts: 4
Joined: Sun Aug 17, 2008 12:40 pm
Location: Hyderabad, INDIA


Who is online

Users browsing this forum: No registered users and 7 guests