Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transform()
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00840834
Message ID:
00840914
Views:
19
Gerry,

Is this the exact code you are having problems with? I've never seen transform() behave like this. Are you storing the result and causing the truncation?

What happens if you ? transform( 150 ) from the command window?

Put a set step on in the code where the transform is happening and work through the code in the debugger.

This alomost looks like you are using round() with a negative second argument instead of transform.

>Up until recently I've been using TRANSFORM() to reliably convert numeric and integers to character strings. Recently it changed the way it converted numbers to characters: it drops zeros on the end of the number.
>
>Previously: TRANSFORM(150) = '150'
>Now: TRANSFORM(150) = '15'
>
>Anybody have any idea if there is a setting that is doing this?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform