>Hi all,
>
>I'm trying to do a TextBox Class, in the TextBox Valid event i have
>
>
if lastkey() = 27
> return .T.
>endif
>---Here i create my Validation Method
>return This.Validation()
>
>Now i put in the Form this TextBox and in Valid event dodefault(), and in the validation Method my code to validate, and return .t. if ok or return .f. if not, but if the validation fails it goes to the next TextBox, and don't return to the original, any lights here?
>
>Thank's
>
>João Batista
You don't need to put anything in the textbox on the form to make this work. If you do put the DODEFAULT(), then it will always return .t.. You can try this: RETURN DODEFAULT()
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer