Thanks for all the ideas. I am still unable to get it working. See code:
Answer()
Func Answer()
Global $answer = InputBox('HostName Change', 'Enter the Hostname that you want this PC to be changed to.', '', '', -1, -1, -1, -1, 30)
If NOT StringIsDigit($answer) AND NOT StringIsAlpha($answer) AND StringIsAlNum($answer) Then
Stop()
Else
Verify()
EndIf
EndFunc
Func Stop()
MsgBox(262160, 'STOP', 'You must enter a valid hostname to continue.' & @CRLF & 'Please restart the utility and try again.', 120)
Exit
EndFunc
Func Verify()
If MsgBox(262212, 'Verify', 'You entered: ' & $answer & @CRLF & 'Is this the hostname that you wanted to enter?', 60) = 7 Then
Answer()
Else
MsgBox(0, 'Yeehaw!', 'You HAVE enter a valid hostname.')
EndIf
EndFunc
This is just test code, but when I just click "OK" it accepts a "Blank or Null" value.
I need Alpha Numeric with no "white space" and no "Null" value.
Keep the ideas coming. I have run out...
Cheers,
Russ