[Gambas-user] disallow characters in TextBox

Benoît Minisini gambas at ...1...
Thu Apr 9 15:04:55 CEST 2009


>
> So, you have to write something like :
> (this is not tested)
> IF key.Code = "~" THEN
>         STOP EVENT
> ENDIF

If you want to check a key against a real string, you can't do that, you must 
use the Key.Text property.

Key.Text is different from Key.Code! Key.Code identifies the keyboard key, 
whereas Key.Text is the text associated with the key.

Regards,

-- 
Benoît




More information about the User mailing list