Thanks Hugo and Fabio. Both answers worked just fine.
Muchly appreciated
>I have a textbox control with an Inputmask set to "!!!!!!!!!!"
>
>the code in the Keypress event is
>LPARAMETERS nKeyCode, nShiftAltCtrl
>
>IF NOT INLIST(nKeyCode, 9, 13, 15)
> DODEFAULT()
> thisform.setFilter
> NODEFAULT
>ENDIF
>
>When I press a key the value in the textbox shows as lower case and is treated as lower case in the setFilter method. When the control loses focus, the value in the control becomes upper case.
>
>Is there anything I can do to have the value immediately displayed as Upper Case?
>
>I tried putting
>this.value = UPPER(this.value)
>this.selstart = LEN(TRIM(this.value))
>immediately after DODEFAULT()
>
>and that seems to work. But I'm curious if there is simply some property that I can set or a better way to get the value immediately in upper case.
>
>Thanks to all...............Rich