pause exacution

phillip1882
01-05-2008, 03:19 PM
i'm writing a vb program that solves sudokus. during program exacution, i would like it to pause for a couple of seconds after placing each value in the puzzle, so the user can see what the program is doing. however the only pause related funtion i can find refers to timers not exacution. anyone know how to do this?

the master
01-05-2008, 04:10 PM
Yes you can use the Sleep API (http://www.freevbcode.com/ShowCode.asp?ID=7556)

phillip1882
01-05-2008, 04:51 PM
that was of no help, i went to the link and i tried copy pasting the code, and got several errors, first it says private declare is wrong then it says lib 'kernel32" is wrong then it asks me if i want to over write my current work, which i dont want to do. could you give futher instuctions, how to i impement a function like this?

the master
01-05-2008, 04:53 PM
I guess its possible something like that wont work first time but i dont know why you got all those other errors/messages.

Which office program are you using? Ill test it out and upload a file if it works

phillip1882
01-05-2008, 05:08 PM
i'm using evelop. thanks for trying to help anyway.

the master
01-05-2008, 05:11 PM
Ive not heard of evelop. I dont know if thats a spelling mistake or what but ive got just about all of office 2007 installed and i havnt got anything that even sounds like that

phillip1882
01-05-2008, 06:57 PM
envelop is a visual basic compiler it has nothing to do with windows office.




Please post legacy VB questions, in the General forum.

Thank you.

the master
01-06-2008, 04:55 AM
Oh sorry. You posted this thread in the "VBA / Office integration" forum.

I think that example could be a bit missleading because it says there are no declarations. The first line of the code "Private declare...." is actually a declaration and must be put at the top of your code before any subs

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum