Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PRMBAR()
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Miscellaneous
Thread ID:
00409747
Message ID:
00409752
Views:
25
>Hello.
>I have difficulties with using PRMBAR() function.
>For example.. how can I get text of first menu item in system "VIEW" menu? PRMBAR("_MSM_VIEW",1) return "No such menu or menu item is defined" error..
>Thanks

Denis,

In order for PRMBAR() to work, it must be defined with bar number syntax. For example,
DEFINE BAR 1 OF _mfile PROMPT "New..." ;
  MESSAGE "Create a new file"
? PRMBAR("_mfile, 1) && Returns "New..."
* The following won't work.
DEFINE BAR _mvi_toolb OF _mview PROMPT "Toolbars..." ;
  MESSAGE "Shows, hides, or customizes toolbars"
? PRMBAR("_mview", 1) && Generates an error since the bar # doesn't exist
* However...
? PRMBAR("_mview", _mvi_toolb) && Returns "Toolbars.."
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform