Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need macro substition help
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00832634
Message ID:
00832657
Vues:
15
You'll have to use a local variable as follows:
LOCAL lcPrev
lcPrev = this.parent.parent.priorday
This.Parent.Parent.&lcPrev
Cathy


>I'm working on a calendar class in vfp7. It's a container with child containers that act as days. User click a day container to insert an event. If they click a different day after one has been clicked already the event is moved. So I needed a way to reference the prior day clicked. I did this by storing the control name clicked in a property called "priorday" on the calendar class.
>
>this.parent.parent.priorday would be set to "Day4" for example. Now when I want to reference the prior day when control "Day5" was clicked I could do something like this.parent.parent.&this.parent.parent.priorday..eventhours.
>However this doesn't work and I'm not sure why. Any tips?
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform