Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for a snazzy way
Message
De
25/07/2001 09:41:42
 
 
À
25/07/2001 09:30:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00534851
Message ID:
00534955
Vues:
11
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform