Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Menu
Message
From
06/04/2001 11:39:43
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Dynamic Menu
Miscellaneous
Thread ID:
00492862
Message ID:
00492862
Views:
60
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
Next
Reply
Map
View

Click here to load this message in the networking platform