retval = inputbox("type stuff")
if retval = "" then
' /* Cancel Pushed, Or Left Blank */
msgbox "You Entered Nothing..."
else
' /* They Typed Stuff */
msgbox retval
end if
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
Get the return value from the msgbox call. It returns the button value pressed.
WaltP
Posting Sage w/ dash of thyme
10,507 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
In the code I posted, retval (the variable) will be blank if the user pressed cancel. Hence the code:
if retval = "" then
' /* Cancel Pushed, Or Left Blank */
msgbox "You Entered Nothing..."
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215