I have an input box which the user is required to enter something into.
If they press ok then the value of the input box should be validated to see if something is actually entered. If not then they should get prompted again to enter something.
However if the user presses cancel I want to exit the sub
How can I actually determine which button they ave pressed so I can do this.
I know I can probably create a form quite easily with a text box and two buttons and do all of this there, but I find it hard to believe that an input box which has two buttons already "OK" and "Cancel" will not allow me to deferentiate between wat has been pressed?
Or maybe I just don't know how to do this?
Help and advice appreciated.
Cheers,
Neemi
If they press ok then the value of the input box should be validated to see if something is actually entered. If not then they should get prompted again to enter something.
However if the user presses cancel I want to exit the sub
How can I actually determine which button they ave pressed so I can do this.
I know I can probably create a form quite easily with a text box and two buttons and do all of this there, but I find it hard to believe that an input box which has two buttons already "OK" and "Cancel" will not allow me to deferentiate between wat has been pressed?
Or maybe I just don't know how to do this?
Help and advice appreciated.
Cheers,
Neemi