thanks Marcia,
My code did not work because i put the nodefault clause at the beginning of the code, putting it where you told me, works fine. Anyway I don't understand why it behaves so...but the important thing is that it works !!!
:-)
Alessio
>
I put the code in the lost focus event, something like this :>
>
>do case
> case somecondition
> this.setfocus()
> NODEFAULT
> case othercondition
> this.parent.parent.columns(ncol).Setfocus()
> NODEFAULT
>endcase
>