>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--