Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF Statement Doesn't Seem to be Working
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00123956
Message ID:
00124433
Views:
19
>So I guess that means that for things like:
>-------------------
>MyTable.Counter1        (integer)
>MyTable.Counter2        (Numeric 4 0)
>
>REPLACE MyTable.Counter1 WITH 1
>REPLACE MyTable.Counter2 WITH 1
>
>DO CASE
>  CASE MyTable.Counter1 = 1          && is unreliable?
>  CASE MyTable.Counter2 = 1          && is unreliable?
>  CASE MyTable.Counter1 > 0 and MyTable.Counter1 < 2          && is reliable?
>  CASE MyTable.Counter2 > 0 and MyTable.Counter2 < 2          && is reliable?
>  OTHERWISE        && just in case   :-)
>ENDCASE
More like:
lnCounter = (MyTable.Counter2 / 3) * 3
CASE MyTable.Counter1 = lnCounter  && is unreliable?
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Reply
Map
View

Click here to load this message in the networking platform