Welcome Guest Search | Active Topics | Sign In | Register

maskededit needs cleanstring property Options
DeanBlakely
Posted: Thursday, June 19, 2008 4:27:17 PM
Rank: Advanced Member
Groups: Member

Joined: 2/20/2008
Posts: 34
it's such a pain to have to clean the dashes out of the text property in, for instance, a Soc Sec number. If you had a "cleanstring" property that had just the data it would be soooo nice.
Regards,
Gary
eo_support
Posted: Thursday, June 19, 2008 6:57:26 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
Hi Gary,

It is unlikely that this will be implemented. The reason is while you obviously know which character should stay and which character should be cleaned out, the MaskedEdit does not. It faithfully forces the user to enter according to the mask but it does not know, and does not care which character is for what. We could add some support to allow you to define rules for which character should be removed, but defining such rule itself is still a work to be done by you ---- and you might find out that writting code to do whatever you want is not only easier, but much more flexible.

Thanks
DeanBlakely
Posted: Friday, June 20, 2008 8:25:57 AM
Rank: Advanced Member
Groups: Member

Joined: 2/20/2008
Posts: 34
If I put dashes in my mask I would not expect the control to differentiate. But I could expect the control to differentiate literals from mask segments. That way my Soc Sec field could be entered with four '0000' interleaved with four '-' literals and my cleanstring property would always have the raw number.

Anyway, I don't want to belabor the issue. It was just an idea. no need to respond any further.
Thanks,
Gary


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.