>thnx Naomi for your help.
>
>i have a strange problem with the next code :
>
>LOCAL loSearchObject
>
>IF TYPE("_Screen.ActiveForm.ActiveControl")=="O"
> loSearchObject = _SCREEN.ACTIVEFORM.ACTIVECONTROL
>ENDIF
>
>this code is triggerd with the f2 function key. Sometimes the type of the activecontrole is set as an object but most of the times not. The strangest thing is that te f2 key is pressed always on the same object.
>
>Do you know what is wrong ?
>
>thnx
What is the exact code you're using? Is it OKL code? Also, check for type("_screen.ActiveForm.ActiveControl.Name") = "C"
If it's not broken, fix it until it is.
My Blog