Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFPx OOP Menu project
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01445392
Message ID:
01446317
Vues:
84
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform