General information
Category:
Coding, syntax & commands
Title:
Need macro substition help
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?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only