General information
Category:
The Mere Mortals Framework
David,
What you need to realize is that checkrules() does not return .t. or .f. unless you explicitly tell it to. You'll notice that when you run save(), it returns '-6' indicating that rules have been broken. So the rules are working.
Really, now! You must spend more time on your studies and stop wasting my time with this!
>I have a business object which is checking a number of rules. However, one rule in particular does not seem to affect the outcome of the checkrules() method, even if the rule is broken.
>
>I stepped through the code, and it calls AddBrokenRule(), and increments the rules object's icount property, but when I run checkrules(), it returns .t. If I run getcount(), it returns 1. How can getcount() return 1, and checkrules() return .t.?
>
>I can't figure out what's happening, and I'm losing my marbles! Any help would be appreciated.
>
>Thanks,
>
>David
Previous
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