Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Try/Catch
Message
From
07/08/2007 12:36:02
 
 
To
07/08/2007 11:41:24
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01246493
Message ID:
01246529
Views:
23
>Ok. Just for errors. So, how would I trap when a variable value changes then? There are a number of things happening in that block of code and I want to be able to say, "Hey, look! The value change, so let's jump down to this other standard block of code and handle it." If I use IF or CASE, I could end up with 20 different conditional blocks. Seems like there should be a way to just get out and handle it without all the extra code.

I see I'm late and you already have answers from Naomi and Craig.

To detect value changes would work with an object ( see object.AddProperty() ) and Assign Methods.

As Craig said, this is also a good case for the Chain of Responsibility Design Pattern.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform