Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return don't return
Message
From
19/04/2001 23:15:51
 
 
To
19/04/2001 22:50:47
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00497693
Message ID:
00497697
Views:
20
This message has been marked as the solution to the initial question of the thread.
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform