I have an input box in my program and I want to be able to control the flow when the 'cancel' button is pushed. Any help would be appreciated.
stan yost
0
Light Poster
Recommended Answers
Jump to Postretval = inputbox("type stuff") if retval = "" then ' /* Cancel Pushed, Or Left Blank */ msgbox "You Entered Nothing..." else ' /* They Typed Stuff */ msgbox retval end if
Jump to PostGet the return value from the
msgbox
call. It returns the button value pressed.
All 6 Replies
Comatose
290
Taboo Programmer
Team Colleague
stan yost
0
Light Poster
stan yost
0
Light Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Comatose
290
Taboo Programmer
Team Colleague
lanze12
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.