NWstrImoney

Returns the country prefix and money format for a numerical value

NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform Localization (LOC*.*)
Service:Internationalization

Syntax

  #include <time.h> or #define NWL_EXCLUDE_TIME 
  #include <stdio.h> or #define NWL_EXCLUDE_FILE 
  #include <nwlocale.h> 
   
  pnstr N_API NWstrImoney  ( 
     pnstr         buffer,  
     NUMBER_TYPE   Value); 
  
  

Pascal Syntax

  uses netwin32 
   
  Function NWstrImoney 
    (buffer : pnstr; 
     Value : NUMBER_TYPE 
  ) : pnstr; 
  
  

Parameters

buffer
(OUT) Points to the number formatted for a specific country in the international format.
Value
(IN) Specifies the number to format.

Return Values

Returns a pointer to string.

Remarks

NWstrImoney has no ANSI counterpart.

The last 2 or 3 (some locales) digits of the Value parameter are always formatted as the smallest money units for that locale. The Value parameter is of the nint32 type.

NWstrImoney is different from the NWstrmoney function since it provides country prefixes in the buffer parameter.

The buffer parameter can have the following values:

  BELGIUM       BEF 
  CANADA_FR     CAD  
  DENMARK       DKK  
  FINLAND       FIM  
  FRANCE        FRF  
  GERMANY       DDM  
  ITALY         ITL  
  NETHERLANDS   NLG  
  NORWAY        NOK  
  PORTUGAL      PTE  
  SPAIN         ESP  
  SWEDEN        SEK  
  SWITZERLAND   SFR 
  UK            GBP  
  USA           USD  
  JAPAN         JPY  
  KOREA         KRW  
  PRC           CNY 
  TAIWAN        TWD 
  
  

Examples:

  locale      number      formatted value
  
  US          1234         USD 12.34 
  FRANCE      1234         FRF 12,34 
  
  

For example, if country code 033 (France) were used and 3498 is passed in the Value function, the output string would be "FRF 34,98".

See Also

NWLsetlocale, NWstrmoney