General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only