Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Specifying Format in a variable
Message
 
 
À
11/06/2010 10:23:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01468515
Message ID:
01468522
Vues:
49
>Naomi suggests preparing the formatted value in advance; in addition to that, you can also use the transform() function in the report expression itself ( I suspect this would be simpler). Just set the report expression to something like:
>
>
>transform(MyField, pcFormatExp)
>
>
Hilmar,

This seems to work fine.
lcNumber = '1235678790'
lcFormat = '999,999,999'
?TRANSFORM(m.lcnumber, m.lcformat)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform