Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why cant a SetFocus be used in Valid method ?
Message
From
14/06/2002 01:33:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00658596
Message ID:
00668387
Views:
23
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
Previous
Reply
Map
View

Click here to load this message in the networking platform