Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Como hacer que la condición (Format) sea dinámica
Message
From
11/10/2003 16:00:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
09/10/2003 22:30:21
Firmo Lopez
Santa Rita Investmets Inc
Boca Raton, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00837223
Message ID:
00837845
Views:
25
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform