in Validation method
if it is not valid return 0
eg
If ( Validation Condition ) = .t.
return
endi
return 0
>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
Regards
Hiten K M
( The best and the worst are yet to come .. keep coding ! )
My Resume >>