Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to identify the object that has the focus

Status
Not open for further replies.

angelleynes

Programmer
Dec 28, 2001
46
0
0
US
I need help on identifying which object has the focus while i'm stepping through the form...


thanks in advance
 
HI

ThisForm.ACtiveControl.Name
... gives the name of the active object.
:)
ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 

-1- formname.activecontrol or
-2- screen.activeform.activecontrol
will return a ref to the object that has the focus.

The value will be null if there isn't a control on
the form that has the focus(case 1 above.)

The value will be null if there isn't an
active form or there isn't a control on
the active form that has the focus(case 2 above.)




Darrell 'We all must do the hard bits so when we get bit we know where to bite' :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top