Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus won't work in Valid?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00205503
Message ID:
00205524
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform