Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple Transform() Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Simple Transform() Problem
Divers
Thread ID:
00838401
Message ID:
00838401
Vues:
46
I have VFP 7 SP1, and have a couple of problems (or interpretations) with the way TRANSFORM() works:
SET DECIMALS TO 2
SET FIXED OFF
? TRANSFORM(4.220)
This should return "4.22", but it returns "4.220". It works correctly in VFP 6.

Here's another:
SET DECIMALS TO 2
SET FIXED OFF
? TRANSFORM(4.225,"99.999")
I would think with SET FIXED OFF that this would return "4.225", but it returns "4.230", which means it is somehow honoring the SET DECIMALS internally, then maps it externally to my picture.

The first seems like a bug, and the second may just be a "feature". I don't have VFP 8, so I'm not sure what it will do. Does anyone have info about this?
Scott McDaniel
MCP VFP Desktop
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform