Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu Scope and PrmBar()
Message
From
24/01/2003 11:44:15
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Menu Scope and PrmBar()
Miscellaneous
Thread ID:
00745121
Message ID:
00745121
Views:
52
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
Next
Reply
Map
View

Click here to load this message in the networking platform