Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Como hacer que la condición (Format) sea dinámica
Message
De
11/10/2003 16:00:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
09/10/2003 22:30:21
Firmo Lopez
Santa Rita Investmets Inc
Boca Raton, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00837223
Message ID:
00837845
Vues:
24
Sí, esa es la idea.

No estoy seguro, pero podría ser que necesites ajustes adicionales, al calcular la longitud, para las comas.

Si tienes problemas de alineamiento, intenta un font de anchura fija, por ejemplo, Courier, o Courier New.

>Gracias Hilmar.
>Cree un metodo con el siguiente codigo.
>
>LPARAMETERS nCurrency
>
>LOCAL cMask, nDigits, nDecimals
>
>m.nDigits = 16 - 4
>m.nDecimals = SET('DECIMALS')
>m.cMask = RIGHT('$$$,$$$,$$$,$$$,$$$,$$$', m.nDigits) + IIF(m.nDecimals > 0, '.' + REPLICATE('9', m.nDecimals), '')
>
>RETURN TRANSFORM(ROUND(m.nCurrency,m.nDecimals), m.cMask)
>
>utilizando TRANSFORM, lo llamo desde el reporte, pero ahora utilizo el campo como caracter y ha funcionado buenisimo.
>
>Gracias.
>
>Ing. Firmo Lopez
>firmo@autosofttaller.com
>www.AutoSoftTaller.com
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform