|
-
Sep 21st, 2000, 02:58 PM
#1
is there a way to clear the previous contents
of this control?
along the same lines as with a textbox:
Code:
text1.text = vbnullstring
-
Sep 21st, 2000, 03:40 PM
#2
Fanatic Member
-
Sep 21st, 2000, 11:12 PM
#3
Hyperactive Member
MaskEdBox1.Text = ""
is this what u wanted?
-
Sep 22nd, 2000, 04:52 AM
#4
Frenzied Member
Try this:
Dim Temp As String
Temp = MaskEd.Mask
MaskEd.Mask = ""
MaskEd.Text = ""
MaskEd.Mask = Temp
I use that a lot for mask edit boxes.
Or you could use a custom written control.
-
Sep 22nd, 2000, 05:17 AM
#5
Conquistador
what exactly do you want to do?
-
Sep 22nd, 2000, 05:23 AM
#6
_______
<?>
Code:
'let's say we have 4 maskedboxes using currency masks
'we can clear them this way.
Public Sub ClearAllMskEdits()
For intIncrement = 0 To Forms.Count - 1
For Each ctlMyControl In Forms(intIncrement).Controls
'
If TypeOf ctlMyControl Is MaskEdBox Then
'set the mask to nothing and then set the text to nothing
ctlMyControl.Mask = ""
ctlMyControl.Text = ""
'After clearing, you need to reset the mask to whatever it was
'for this example I will say it is ###.00
ctlMyControl.Mask = "###.00"
'
End If
'
Next ctlMyControl
'
Next intIncrement
'
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 22nd, 2000, 12:03 PM
#7
thanks everyone for the help,
this was exactly what i was looking for,
it works
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
|