|
-
Feb 11th, 2005, 06:53 AM
#1
MaskEdit Box [Resolved]
How do you clear the contents of a maskedit text box ? This particular box has its mask property set to "##/##/####". It also has the format property set to "mm/dd/yyyy".
Now I need to clear the box. If I use a mskbox.text = "" then it gives me an invalid property value error message.
Last edited by abhijit; Feb 13th, 2005 at 11:02 PM.
Reason: Resolved
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Feb 11th, 2005, 06:55 AM
#2
Re: MaskEdit Box
 Originally Posted by abhijit
How do you clear the contents of a maskedit text box ? This particular box has its mask property set to "##/##/####". It also has the format property set to "mm/dd/yyyy".
Now I need to clear the box. If I use a mskbox.text = "" then it gives me an invalid property value error message.
Try
= vbnullstring
hope that helps
-
Feb 11th, 2005, 06:57 AM
#3
-
Feb 11th, 2005, 06:59 AM
#4
Re: MaskEdit Box
Have tried that option already. Also tried = vbNull.
Those haven't worked. I also experimented with the includeliterals property of the control. That is not making a difference either.
They should have included a clear text method.
The only way I think it might be done is unset the format and the mask. Clear it and then reset the format.
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Feb 11th, 2005, 07:02 AM
#5
Re: MaskEdit Box
 Originally Posted by abhijit
The only way I think it might be done is unset the format and the mask. Clear it and then reset the format.
I have very little experience with this control, however, what you said sounds like a logical approach. If this does work, let us know as someone else may have a similar question in the future.
-
Feb 11th, 2005, 07:09 AM
#6
Re: MaskEdit Box
 Originally Posted by Hack
Thats the same thing as = vbnullString
No its not worked either.
I have to make this change across 18 forms and deliver the code by Tuesday. So I was looking for a short-cut. I hope I am able to complete it on Monday.
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Feb 11th, 2005, 08:08 AM
#7
Addicted Member
Re: MaskEdit Box
you can clear it by replacing all the sharps into underscores
Code:
MaskedEdit.text = "__/__/____".
-
Feb 13th, 2005, 11:01 PM
#8
Re: MaskEdit Box
Yup. That works like a charm
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
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
|