Skip to content

Modern String MoneyLayoutFromICurrency

Paul Squires edited this page Oct 14, 2026 · 3 revisions

Home › String Library › String Library › MoneyLayoutFromICurrency

MoneyLayoutFromICurrency

Maps a Windows LOCALE_ICURRENCY code (0..3) onto the POSIX (precedes, sepBySpace) layout pair. Public so that the mapping can be asserted a row at a time.

Syntax

MoneyLayoutFromICurrency( v, byref precedes, byref sepBySpace )

Notes

  • 0 is $1.1, 1 is 1.1$, 2 is $ 1.1, 3 is 1.1 $.
  • Anything out of range falls back to 0 rather than inventing a layout.
  • Compiled on every target, though only Windows ever populates a snapshot from it.
  • LOCALE_ICURRENCY describes the POSITIVE layout; MoneyLayoutFromINegCurr is the negative one.

Examples

dim as boolean pre
dim as int32 sep
MoneyLayoutFromICurrency( 2, pre, sep )
print MoneyCompose( "1.1", "$", "", pre, sep, 1 )   '' $ 1.1

Library: String Library
Category: String Library
Documented under: Money Formatting

Clone this wiki locally