Set Currency, Set("Currency")
SET CURRENCY dictates the format in which currency values are displayed.
Usage |
SET CURRENCY TO LEFT | RIGHT SET CURRENCY TO cSymbol cLeftOrRight = SET( "CURRENCY" ) cSymbol = SET( "CURRENCY", 1 ) |
In VFP 5 and earlier, when the currency symbol is more than one character long and placed to the left of the number, it can be truncated if the InputMask does not provide sufficient space for the entire expression. For example, with currency set to "SEK" to the left of the number, TRANSFORM(12345.6789, "@$999999.9999") returns "K12345.6789" This was fixed in VFP 6.0. |
Example |
SET CURRENCY TO " DMK" SET CURRENCY RIGHT * The @$ function is the older equivalent of Format @ 1,1 SAY 12345.6789 PICTURE "@$99999.9999" * DISPLAYS "12345.6789 DMK" |
See Also |
Configuration Files, Format, InputMask, Transform(), Set Point, Set Separator, Set SysFormats |