Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for a snazzy way
Message
From
25/07/2001 09:41:42
 
 
To
25/07/2001 09:30:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00534851
Message ID:
00534955
Views:
19
>>if (dp > 0) AND (dp <= 2)
>
>or
>
>if (dp=1) OR (dp=2)

My Head's Spinning! :)

Thanks for the input Len

I've just noticed that my mathmatical solution fails for DP's over 4, so I think I will either use my original post with the IF for the zero condition or your last suggestion.

Just to clear up the confusion...
My original spec was wrong..It should have been more like to following
Case dp = 0
lcIm = 99999999
Case dp = 1
lcIm = 999999.9
Case dp = 2
lcIm = 99999.99
Case dp = 3
lcIm = 9999.999
Case dp = 4
lcIm = 999.9999
Case dp = 5
lcIm = 99.99999
Case dp = 6
lcIm = 9.999999
Case dp = 7
lcIm = .9999999
Otherwise
lcIm = 99999999
Will Jones
Previous
Reply
Map
View

Click here to load this message in the networking platform