IF TYPE("myapp") = "O"
*-- myapp exists, so do you have the property assigned???
IF TYPE("myapp.ccurrmenu")= "U"
*-- hey we do, pop the name of the menu in
myapp.ccurmenu = thismenuname
ENDIF
ENDIF
<\PRE>
HTH,
Ric
>Hi,
>I try to use MENU() to get the active menu name. However, VFP return empty string even I have do mymenu.mpr. I try to get sample from help. And I found that, MENU() will return _MSYSMENU if I add this statement
>
>ON SELECTION MENU _MSYSMENU MESSAGEBOX(MENU())
>
>Why?
>How to solve it?
>Thank you