Rank: Newbie Groups: Member
Joined: 6/23/2013 Posts: 3
|
Hi All -
Am using the Masked Edit Control with a custom mask. The control is working fine. It is saving the data in the field to a SQL Server database. The literals, i.e. the masking characters, are also being saved in the database along with the data. The problem is that when I try and fetch that data to be displayed back into the field, nothing is being displayed. Is this because the mask itself is being saved with the data so that the control does not know how to handle the masking characters? If so, how would I correctly save the data so that it can be displayed back correctly into the field? Is there a way to save the data without the mask characters so that the control then displays the data correctly? Any info on this would be much appreciated! Thanks.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
The MaskedEdit control should take the literals. For example, if you have a date value such as 12/23/1990, where "/" is the literal, you can assign "12/23/1990" directly to the MaskedEdit's Text property. If it doesn't, please let us know the value you are trying to load into the MaskedEdit and we will take a look.
Thanks!
|