Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Broken Rules not
Message
From
13/12/2001 13:43:55
 
 
To
13/12/2001 13:35:41
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00593969
Message ID:
00593976
Views:
25
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
Map
View

Click here to load this message in the networking platform