Create a script with regional settings
Create a script that contains the regional settings from the computer by using the GetEmptyScript method.
Examples
Example 1:
The client sends:
{
"jsonrpc": "2.0",
"id": 3,
"method": "GetEmptyScript",
"handle": 1,
"params": []
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"qReturn": "///$tab Main\r\nSET ThousandSep=',';\r\nSET DecimalSep='.';\r\nSET MoneyThousandSep=',';\r\nSET MoneyDecimalSep='.';\r\nSET MoneyFormat='$#,##0.00;($#,##0.00)';\r\nSET TimeFormat='h:mm:ss TT';\r\nSET DateFormat='M/D/YYYY';\r\nSET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';\r\nSET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';\r\nSET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';\r\nSET LongMonthNames='january;februari;march;april;may;june;july;august;septembre;octobre;november;december';\r\nSET LongDayNames='mobday;tuesday;wednesday;thursday;friday;saturday;sunday';\r\nSET FirstWeekDay=0;\r\nSET BrokenWeeks=0;\r\nSET ReferenceDay=0;\r\nSET FirstMonthOfYear=0;\r\nSET CollationLocale='';\r\n\r\n"
}
}
The script is created, and the script's main section is named Main.
Example 2:
The client sends:
{
"jsonrpc": "2.0",
"id": 4,
"method": "GetEmptyScript",
"handle": 1,
"params": [
"Principal"
]
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"qReturn": "///$tab Principal\r\nSET ThousandSep=',';\r\nSET DecimalSep='.';\r\nSET MoneyThousandSep=',';\r\nSET MoneyDecimalSep='.';\r\nSET MoneyFormat='$#,##0.00;($#,##0.00)';\r\nSET TimeFormat='h:mm:ss TT';\r\nSET DateFormat='M/D/YYYY';\r\nSET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';\r\nSET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';\r\nSET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';\r\nSET LongMonthNames='january;februari;march;april;may;june;july;august;septembre;octobre;november;december';\r\nSET LongDayNames='mobday;tuesday;wednesday;thursday;friday;saturday;sunday';\r\nSET FirstWeekDay=0;\r\nSET BrokenWeeks=0;\r\nSET ReferenceDay=0;\r\nSET FirstMonthOfYear=0;\r\nSET CollationLocale='';\r\n\r\n"
}
}
The script is created, and the script's main section is named Principal.