I have a context menu that is created in a form method using DEFINE POPUP.
I then call an external class and in that class, I have used the Prmbar() funtion to return the prompt as follows :-
m.cPrompt = PrmBar('Ctxmenu', 1)
I get an error message saying "No such menu or menu item is defined".
I have also SET STEP ON in the form and prior to calling the class in question, gone to the command window and tried the same thing only to get the same error message. However, if I issue :-
ACTIVATE POPUP Ctxmenu
The menu activates (frome the Command Window) like a good 'un <s>.
Any ideas why PrmBar is failing? Is the menu scoped to the form in which it was created? I assumed menus were in memory and accessible from anywhere irrespective of where they were initially defined. If they are scoped, in this case, to the form, is there any way of referencing the menu from a different class?
Many thanks for any help!
Best
-=Gary