Domino Code Fragment
Code Name* lotus.notes.International class | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.18.217.60.35 | |
Description* This agent examines three international settings and displays a setting's value if it deviates from what the agent considers standard. | Type* Java | Categories* (Misc) |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
public class internationalagent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
boolean except = false;
International inat = s.getInternational();
if (!inat.getCurrencySymbol().equals("$")) {
System.out.println("Currency symbol is " +
inat.getCurrencySymbol());
except = true;
}
if (!inat.getDecimalSep().equals(".")) {
System.out.println("Decimal separator is " +
inat.getDecimalSep());
except = true;
}
if (inat.isTime24Hour()) {
System.out.println("Time is 24-hour");
except = true;
}
if (!except) {
System.out.println("No exceptions");
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
}