Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFPx OOP Menu project
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01445392
Message ID:
01446317
Views:
83
Hi Mike.

>OK, I note that the main menu, has a count property which is the count of menu pads.
>Is there a way to cycle through the main menu, then reference the pads, and then reference the bars underneath them?

Note that all objects are based on Collection. So, use either a FOR loop with the Item method or a FOR EACH loop:
for each loPad in oMenu foxobject
  for each loBar in loPad foxobject
* do something
  next
next

for lnI = 1 to oMenu.Count
  loPad = oMenu.Item(lnI)
  for lnI = 1 to loPad.Count
    loBar = loPad.Item(lnI)
* do something
  next
next
Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform