Domino Code Fragment

Code Name*
CurrencySymbol, IsCurrencySpace, and IsCurrencySuffix properties
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.18.188.61.223
Description*
The following agent displays the currency international settings: the currency symbol; whether a space is between the currency symbol and the number; whether the currency symbol follows the number.
Type*
Java
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
import lotus.notes.*;


public class currencysymbolagent extends AgentBase
{
 public void NotesMain()
   {
   try
     {
       Session s = getSession();
       International inat = s.getInternational();
       System.out.println("Currency symbol is \"" +
       inat.getCurrencySymbol() + "\"");
       if (inat.isCurrencySpace())
         System.out.println
         ("Space between currency symbol and number");
       else
         System.out.println
         ("No space between currency symbol and number");
       if (inat.isCurrencySuffix())
         System.out.println
         ("Currency symbol follows number");
       else
         System.out.println
         ("Currency symbol does not follow number");
     }
   catch (Exception e)
     {
       e.printStackTrace();
     }
   }
}