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!

How do I clear a maskEditBox of its content... 2

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
US
I want to clear my maskEditboxes of it contents but not the formatting. I tried using maskEditBox1.cliptext="", but that property is only available in design-time.

any help will be greatly appreciated.
 
Hi,

set maskedit1.mask= the mask value you have set like ##9999.99

bye
 
you type the code

maskededitbox.text="______.__"

clear athe old values
 
I found with dates that this method worked well :

txtDate.Mask = "" 'Clears the mask
txtDate.Text = "" 'Clears the text
txtDate.Mask = "##/##/####" 'sets the mask back again

Hope that helped :)

Joanne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top