Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cancel Input Box 1

Status
Not open for further replies.

dbero

Technical User
Mar 31, 2005
109
US
Hello:

I am using an input box to enter some text. However, if a person accidently clicks and opens the Input Box, which has default text, I would like the ability for the Cancel button to exit the sub. Seems to me the Input Box does not work that way in that the Cancel and OK are the same. Is there a way to exit the sub, other than interrogating the text? I can't interrogate the text because if it's the same i may want to store it, or not.

Thank you!
 
If the user clicked the Cancel button then the result is an empty string: ""

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Unfortunately I have default text in the input box, so it's not an empty string. The reason I'm using an input box is so the person can add additional detail to the default string.

thank you for your response.
 
For me (ac2003) the default text is NOT returned when I click the Cancel button.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top