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)