Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple Transform() Problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Simple Transform() Problem
Miscellaneous
Thread ID:
00838401
Message ID:
00838401
Views:
49
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
Next
Reply
Map
View

Click here to load this message in the networking platform