Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic Menu
Message
De
06/04/2001 11:39:43
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
Dynamic Menu
Divers
Thread ID:
00492862
Message ID:
00492862
Vues:
61
I have created a menu that changes depending on records in a table. I have an invoice part on my menu that I create through code after I call the menu.

define pad _invoice of _msysmenu prompt "\ KEY ALT+I, ""
ON PAD _invoice of _msysmenu activate popup invoice

define popup invoice margin relative shadow color scheme 4
select distinct test.country from test into cursor cltest order by country
scatter memvar

for x = 1 to reccount("cltest")
define bar x of invoice prompt cltest.country
on selection bar x of invoice do form country
skip
next

I then call the same code when I exit the country form that adds a new country so when I click on Invoices on the menu it shows that new country as a selection. The problem I am having is how do I know which option I selected under Invoices. On a differnt form I want to display on the caption the country selected in the menu and change what is visible on the form depending on the selection. How would I do this?

TIA,
Tyler
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform