Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus
Message
From
16/08/2000 10:20:42
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00405348
Message ID:
00405483
Views:
18
>How can I know if an specific control has the focus.

type('thisform.activecontrol.name') = 'C' and thisform.anobject = thisform.activecontrol

The above should be true if 'AnObject' has focus. I'm not sure if that will work by itself or you will need to use CompObj() to compare the objects. Notice that you can't jsut compare the Name properties because of containership.
Previous
Reply
Map
View

Click here to load this message in the networking platform