Clearing values in masked edit box

ahgao2
03-10-2003, 02:13 AM
How do you clear the values in the masked edit box?
I try to set the text as empty but they give me an error saying "invalid property value"

is there no way to clear the values or words in the masked edit box?

eilrach
03-10-2003, 02:44 AM
How do you clear the values in the masked edit box?
I try to set the text as empty but they give me an error saying "invalid property value"

is there no way to clear the values or words in the masked edit box?

set promptchar to " "(1 space) or press space bar once to promptchar property, that is how i resolve it when i encounter that problem.

ahgao2
03-10-2003, 10:21 AM
set promptchar to " "(1 space) or press space bar once to promptchar property, that is how i resolve it when i encounter that problem.


Ok I did what you said but then nothing happen... the values did not clear away... :(

But I hope that I typed the codings correctly
-> mbTelNo.PromptChar = " "


Thanks anyway!

Midian
03-15-2003, 01:15 PM
The method I use is exactly what is in the help file, saving the current mask first.


Public Sub ClearMaskEdBox(mskMaskEdBox as MaskEdBox)
Dim sTemp as String

With mskMaskEdBox
sTemp = .Mask
.Mask = ""
.Text = ""
.Mask = sTemp
End With
End Sub

ahgao2
03-15-2003, 09:59 PM
Thanks Midian, it works now. :D

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum