|
-
May 23rd, 2000, 03:26 AM
#1
Thread Starter
Lively Member
I have a masked edit control bound to a database, say, for a second phone number. Not everyone has two phone numbers, so if we come to a record where this phone field is empty, the masked edit control does not clear, but keeps its previous value. What can I do to make it update each time the current record changes?
-
May 24th, 2000, 08:01 PM
#2
Lively Member
How are you switching between records, do you use a DataControl, a query, or with code.. If you are clicking on a button you could insert this code behind it. First clear the mask, then clear text, then assign the mask again. Ex.
Code:
MaskEdBox1.Mask = ""
MaskEdBox1.Text = ""
MaskEdBox1.Mask = "(###)###-####"
Dr_Evil
Senior Programmer
VS6 EE
VS.NET EA
-
May 24th, 2000, 08:29 PM
#3
Thread Starter
Lively Member
Thanks, it works great. I was trying to use the data control, but gave it up quickly because of its limitations.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|