Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which control had focus ?
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00768954
Message ID:
00768960
Views:
22
>You'll have to add check that Thisform.ActiveControl has valid value.
>
>That was really fast Sergey, and it works fine. But what about checking
>for a valid value ?

Under some conditions Thisform.ActiveControl may not point to any control. For example, if form is modeless and looses focus.
IF TYPE("Thisform.ActiveControl") = "O" AND NOT ISNULL(Thisform.ActiveControl)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform