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

using IF ELSE and making a sub run from it

Status
Not open for further replies.

itsteapot

Technical User
Mar 27, 2009
49
GB
Hi all, I have a script which runs ok except I would like it to return to the begining of my HTA script or to a Subroutine within it,if the password supplied is incorrect.
The error shows a msgbox that has to be clicked, can the result of doing this run the sub routine?
any ideas on how i could acieve this?
Thanks for any help.
 
not sure i get your meaning because

Msgbox "error password issue"
'ok i need to call a subrountine
Call HTASubroutine

sounds like it would do what you want? i am being trite (is that the right word?)

 
I'd use a loop until the password is correct or the maximum of attempts is reached.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top