Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why cant a SetFocus be used in Valid method ?
Message
De
14/06/2002 01:33:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00658596
Message ID:
00668387
Vues:
22
Gerard,
Another late one :)
You can't setfocus from valid, when, range* but you can from other events, methods and typically from lostfocus (or click itself). ie:

*Click
this.Tag = 'ProcessNotDoneYet'
do processing
if processedSucessfully
this.Tag = 'ProcessOK'
else
Anothercontrol.setfocus()

*Lostfocus
if this.Tag # 'ProcessOK'
Nodefault && Simulate valid returning .f. or 0
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