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.
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.