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

wscript.quit in HTA - is it possible? 1

Status
Not open for further replies.

wvdba

IS-IT--Management
Jun 3, 2008
465
US
hi,
i have an HTA app with vbs that pefrorms some functions based on buttons that the user clicks. these functions used to be in vbscripts.
each button is associated with a sub. in each sub there are edit check to see if the data that they entered in a box is valid or not. if the data is not valid, a msgbox would appear to notify the user of the error. in vbscript, i used wscript.quit, is there a way in hta to do this and end the sub? when i put end sub under the if statement, it complains about "end if required". i'm kind of baffled on how to accomplish this.
thanks.
 
Use Exit Sub

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
or if you mean...
[tt] window.close[/tt]
 
phv,
that did it. it worked perfectly. you deserve a star.

thanks tsuji. would closing the window stop executing of the code in the sub?
thanks all.
 
Sure, I didn't read your description, just read the title.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top