Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus in Valid
Message
De
12/12/2000 10:18:21
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00452195
Message ID:
00452205
Vues:
16
>Hello people,
>
>I have to put "ThisForm.Button1.SetFocus" in a Valid like this:
>
>... Code Part A ...
>ThisForm.Button1.SetFocus
>... Code Part B ...
>
>But it's generate a error message...
>
>Anyone could me help?...
>
>I'm using VFP 5.0!
>
>Regards,
>
>Rodolfo Duarte
>Brazil

Rodolfo,
Move your valid code to lostfocus :
if llCannotLeave && Shouldn't lose focus -like valid returning .f.
  nodefault
else
*....
ThisForm.Button1.SetFocus
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform