| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
While you can't "jump" to a label you could call a function or set a variable to bypass code as needed. But would need a bit more info on what you are trying to do before making any recommendations. But as to the input, you could put in a loop to make sure that the user types in something. doThing = false Do data = inputbox("Input something") If IsEmpty(data) then ret = MsgBox("No Data entered, do you want to retry or cancel?", vbRetryCancel, "Cancel Pressed") If ret = vbCancel then wscript.Quit End If ElseIf len(data) = 0 then msgbox "Input box is empty, you must enter something to continue",vbInformation,"Ok Pressed" Else doThing = True End If Loop until doThing = True Msgbox "You have entered: " & data
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|