[Gambas-user] How to set the input mask

Benoit Minisini gambas at ...1...
Thu Dec 29 17:43:01 CET 2005


On Thursday 29 December 2005 17:29, Fabien Bodard wrote:
> Le Jeudi 29 Décembre 2005 09:36, johnf a écrit :
> > I searched and read - but do I set the input mask of a textbox to
> > uppercase? Also where is it set?
>
> Where did you see a mask ?
>
> you can do :
> ' Gambas class file
>
> PUBLIC SUB TextBox1_Change()
>
>   TextBox1.Text = UCase(TextBox1.Text)
>
> END
>
> regards,
> Fabien Bodard
>

This works only with ASCII. You must do:

TextBox1.Text = String.UCase(TextBox1.Text)

-- 
Benoit Minisini





More information about the User mailing list