[Gambas-user] MaskBox.Mask

Patrik Karlsson pata.karlsson at ...626...
Sat Apr 26 06:57:07 CEST 2014


Hi,

today I am using TextBox_Change event to reject | characters.

Public Sub txtName_Change()

  If String.InStr(Last.Text, "|") > 0 Then
    Last.Text = Replace(Last.Text, "|", "")
  Endif

End

I guess MaskBox can do this much simplier, but how, what Mask?

/Patrik



More information about the User mailing list