>the f2 key is labeled in the menu and is redirected to a methode in the form. there i look to the status of the data form. If this dataform is in normal status then i launch the search methode on the form if the form is in modify status than i lauch the search methode on the object with
>
>LOCAL loSearchObject
>
>IF TYPE("_Screen.ActiveForm.ActiveControl")=="O"
>
> loSearchObject = _SCREEN.ACTIVEFORM.ACTIVECONTROL
>
> IF PEMSTATUS(loSearchobject,'searchformmethode',5)
> _screen.ActiveForm.activecontrol.searchformmethode
> ENDIF
>ENDIF
>
>and that is sometimes working sometimes not....
Change for now just a check (instead of checking for the object check for object's name = 'C').
See if this resolves your problem.
If it's not broken, fix it until it is.
My Blog