I wish create a menu popu having the same item check ( from the same)
static ltipo1:=.f.
static ltipo2:=.f.
then from a btnbmp open a menu popup with 2 option
Function BtnPop()
local oItem1,oItem2
MENU oMenu POPUP
MENUITEM oItem1 "First" ACTION oItem:SetCheck( ltipo1 := ! ltipo1 ) CHECKED
SEPARATOR
MENUITEM oItem2 "Second" ACTION oItem2:SetCheck( ltipo2 := ! ltipo2 ) CHECKED
ENDMENU
return oMenu
why it is not compiled ?