Wanderson,
You could also do:
nAt := AScan( Folder1:aDialogs[1]:aControls, { | oCtrl | GetFocus() == oCtrl:hWnd } )
Folder1:aDialogs[1]:aControls[ nAt ] // this is the focused control
function Main()
MsgInfo( ValType( CreateObject( "CTe_Util.Util" ) ) )
return nil