Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus won't work in Valid?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00205503
Message ID:
00205524
Views:
17
C.D.

Martin and Christof are right,
try something like this in the Valid event

llItemValid = .T.
if (some condition)
(generate error message to user to problem)
llItemValid = .F.
endif
return( llItemValid )





>Actually, I have my code like this in txtClass.valid(),
>
>if pclass.class=" "
> ?chr(7)
> ErrMsg = "Class cannot be left blank."
> do form fErrMsg with ErrMsg
>
> ** I tried to put Setfocus here after **
> ** the Error Message form has been released**
>
>endif
>
>Any idea?
>
>Gan
Previous
Reply
Map
View

Click here to load this message in the networking platform