[Gambas-user] Problema with stop event on gb.web.gui

Marco Ancillotti gambas at servinfo.it
Mon Sep 18 19:32:28 CEST 2023


Ok , I solved with someting like:

Public Sub WebTextBox1_Change()
Dim sout As String
Dim i As Integer = 0

sout = ""
For i = 0 To (Len(Last.Text) - 1)
   If Last.Text[i] Match "^[\\/a-zA-Z0-9.-]+$" Then
     sout &= Last.Text[i]
   Endif
Next
   Last.Text = sout
End

It flash the new character a little but it works.

Thank's,
Marco.


Il 16/09/23 22:17, Benoît Minisini ha scritto:
> Le 15/09/2023 à 18:06, Marco Ancillotti a écrit :
>> Hi Benoît ,
>> thank's for the answer , is there another way to filter what can be 
>> inserted in a webtextbox ?
>>
>
> Not directly, but you can try to use the Change event to remove the 
> forbidden characters from the WebTextBox.
>



More information about the User mailing list