It is possible that the "_screen.activeform" is not currently an object reference ( clicked on desktop) therefore place the following in the toolbar button click event:
if type("_screen.activeform.name") = "C"
do form findrec with _screen.activeform
endif
and in the menu add the following to the "Skip for"
type("_screen.activeform.name") <> "C"
Glenn
>i have
do form findrec with _screen.activeform in my menu and
do form findrec with thisform in toolbar.
>
>in form findrec, i add a property frmwithgrid. and in the init() i put,
>
>
>lparameters frmwithgrid
>
>set cursor on
>
>public findcontinue
>
>findcontinue=.f.
>if type("m.frmWithGrid") # "O"
> thisform.frmwithgrid = null
>else
> thisform.frmwithgrid = m.frmwithgrid
>endif
>
>
>but when i run findrec in menu, i'm getting error ACTIVEFORM is not an object, in my code in line
thisform.frmwithgrid.parent.activeform.gridhighlighter1.nrecno=recno().
>
>what is wrong? pls help. TIA.