Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Msgbox stops program flow

Status
Not open for further replies.

Negative666

Programmer
Feb 26, 2008
1
ES
Hello,

I have beeng looking for an answer to the next problem and found nothing.

In my script i use msgbox instruction, it works fine but stops programms flow. ¿How can i send a message to the user without stoping programs flow? I want it to remain visible.

I have read that its posible setting the msgbox instruction in another executable an launching it from first one. But this is not valid for me because i need first program to be able to read if the user have clicked the msgboxs button.

EXAMPLE:

Select = msgbox "Deleting File"
Do
CreateObject("Scripting.FileSystemObject").GetFile("c:\srcrpt.lck").delete
Loop While (Fich.FileExists("c:\srcrpt.lck") and Select<>2)


This way, if the system cant delete the file in a few minutes and remain in loop,user would be able to stop it whenever he wants. (Always that program flow doesnt stop when msgbox is executed)


¿Is this posible?

THANS!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top