Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index on Ascending/Descending field wise
Message
De
04/04/2000 22:22:31
 
 
À
04/04/2000 18:37:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00354206
Message ID:
00355454
Vues:
22
Mike,

Let's see if we can wrap this up.

>>A smaller number *must* be used.
>
>Then the field can be larger than the subtracted number, and you've got a bad order. So the field would have to be shortened.

His dueamount was 15,2 so we could make this work by subtracting from 999999999999.99 with no field shortening needed (I have tested it) :-).
? str(999999999999.99 - 999999999999.99,16,2)  = "            0.00"
? str(999999999999.99 - 2.48,16,2)             = " 999999999997.51"
? str(999999999999.99 - 2.47,16,2)             = " 999999999997.52"
? str(999999999999.99 - -2.48,16,2)            = " 999999999997.51"
? str(999999999999.99 - -999999999999.99,16,2) = "1999999999999.98"
See any problems with this, other than the conceptual "why" that MikeY raised?
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform