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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to end a script in the middle?

Status
Not open for further replies.

barny2006

MIS
Mar 30, 2006
521
US
hi,
i have a script like this:
Code:
yes = "6"
no = "7"
cancel = "2"
answer = msgbox ("continue?", vbyesnocancel + icon, title)
if answer = no then  
... i like to end the script and quit

... the rest of the code will execute if answer is yes
 
yeah, thanks earthandfire, i usually do, what can i say. not sure i agree with your 'just' though :)
 
Ok, but I did warn you that I was being pedantic, though and it was also meant in relation to trollacious's last post where he talked about readability. [wink]

[vampire][bat]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top