I have a simple Kixform InputBox that I can't get to work right. The box has an OK and cancel button and a box where you can type in. If you leave the text box blank and click OK, I want it to prompt you to enter a name to continue and then loop. (I have that part working). But if you click Cancel, I want the script to just end. What code do I need to get the cancel button to work? Thanks!! Here's that part of my script.
Code:
break on
$=setconsole("hide")
:top
$FORM = CREATEOBJECT("Kixtart.FORM")
$Name = $Form.InputBox("Enter name:", "User & PC Finder","")
IF $NAME = ""
MESSAGEBOX ("You MUST Enter A Name In To Continue", "No Name Entered", 16)
GOTO TOP
ENDIF