Welcome Guest Search | Active Topics | Sign In | Register

How to clear the content/data on MasketEdit Options
MannyRosa
Posted: Wednesday, October 10, 2012 9:48:45 PM
Rank: Member
Groups: Member

Joined: 9/6/2011
Posts: 26
I have a masket edit control that shows the data correctly, but after processing I want to clear the page (and the masketedit) but I can't use mskDate1.text = "", or mskDate1.mask ="".
How do I clear the content on a masketedit leaving it as it showed on the first page load?
eo_support
Posted: Wednesday, October 10, 2012 10:17:21 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Setting Text should work for most simple masks. However for complicated masks that includes multiple segments, you will have to set it literally as how it appears in an empty masked edit. For example, if you have multiple segment phone number mask such as "(___)-___-____", then you have to set text to "( )- - " to clear it.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.