Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Between or not between. That is the question.
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Between or not between. That is the question.
Miscellaneous
Thread ID:
00396297
Message ID:
00396297
Views:
43
I had a section of code that was locking me into a valid event and never letting go. The bottom line was that it was failing the valid check on a between comparison. After looking at it and the help I can understand why, but just thought I would throw this out here since it might bite someone else. Bottom line:

betw(50, 1, 100) = TRUE
betw(50, 100, 1) = FALSE
betw(-1, 0,-100) = FALSE (this is what got me since I was using variables) => Between (adjust_amount,0,due_amount) should be valid but wasn't. The fix is easy, but it got me.
Next
Reply
Map
View

Click here to load this message in the networking platform