Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transform()
Message
 
 
À
21/10/2003 16:37:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00840834
Message ID:
00840914
Vues:
26
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform