Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PRMBAR()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
Divers
Thread ID:
00409747
Message ID:
00409752
Vues:
26
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform