Jump to content

Input With Cancel Clicked


Bert
 Share

Recommended Posts

I know I can make the input command require something to make the "OK" button work.

InputBox("", "test","", " M")

How do I make it so if the user clicks on cancel nothin happens? I wish to disable the cancel button. Is this possible, or am I going to have to make a GUI instead?

Edited by vollyman
Link to comment
Share on other sites

  • Moderators

I know I can make the input command require something to make the "OK" button work.

InputBox("", "test","", " M")

How do I make it so if the user clicks on cancel nothin happens? I wish to disable the cancel button. Is this possible, or am I going to have to make a GUI instead?

Maybe something like this would work:

While 1
InputBox("Test", "This is a test.")
If @error <> 1 Then ExitLoop
WEnd
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...