Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Another Masked Edit Question 1

Status
Not open for further replies.

FredGarvin

Mechanical
Oct 10, 2001
221
I am showing my newbie status here...

I have a form with two masked text boxes. One is for a date and one is for a phone number. All works well with the mask. However, I have a need to clear the contents of the text boxes. I can't seem to get this to work. I believe it is because the formats are numeric, so when I use the simple frmFrom1.text1.text="" command, nothing happens because it's a numeric value.

How does one clear a masked edit box that has a number format?

Thanks all.
 
Replies continue below

Recommended for you

You might try clearing the mask, then setting the value to "", then re-setting the mask.
 
Cajun,
That worked like a charm. Thanks for the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor