Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lost Focus
Message
From
04/12/1999 18:58:07
 
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00298783
Message ID:
00298795
Views:
12
>>When a control on a form receives focus, is there a way to determine which control lost focus just prior to that event?
>
>You can trap it in the When - thisform.ActiveControl, if valid, still points at the last control. Thisform.ActiveControl may not be valid at that point (if this is the first control given focus when the form becomes active, for example) and should be tested using TYPE('thisform.activecontrol')

Generally speaking, it works if you use mouse and fails when you use Tab, i.e. it's useless.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform