# 修改用於應用程式和指令碼的區域設定

依照預設，您建立的應用程式和指令碼將會使用您在設定和管理的設定檔中指定的區域設定。您可以在應用程式或指令碼的載入指令碼中編輯或變更這些內容。

所有新的應用程式和指令碼在載入指令碼中具有稱為 Main 的區段。主要包含用於區域設定的 SET 函數與變數。這些根據設定檔中設定的區域設定，設定了金錢、日期和十進位的格式以及當地語系化星期和月份名稱。如需關於設定區域偏好的資訊，請參閱 [Qlik Cloud 分析 中設定用於建立應用程式和指令碼的偏好區域設定](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/UserInterface/Languages.htm#Setting)。

Main，含有區域設定變數

Main，含有區域設定變數

MainMain，含有區域設定變數變數 ![自動產生的資料載入編輯器主區段，具有區域設定](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Resources/Images/ui_main-regional-settings.png)

您可以在 資料載入編輯器 中修改變數值以變更區域設定。

可以使用下列數字格式變數

* ThousandSep：這定義千位分隔符號。如需詳細資訊，請參閱[ThousandSep](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/ThousandSep.htm)。

* DecimalSep：這定義用來標記小數點的標點符號。如需詳細資訊，請參閱[DecimalSep](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/DecimalSep.htm)。

* NumericalAbbreviation：這定義大型和小型數字的數字縮寫。如需詳細資訊，請參閱[NumericalAbbreviation](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/NumericalAbbreviation.htm)。

可以使用下列貨幣格式變數：

* MoneyThousandSep ： 這定義千位分隔符號。如需詳細資訊，請參閱[MoneyThousandSep](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/MoneyThousandSep.htm)。

* MoneyDecimalSep ；這定義用來在貨幣中標記小數點的標點符號。如需詳細資訊，請參閱[MoneyDecimalSep](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/MoneyDecimalSep.htm)。

* MoneyFormat： 這定義貨幣符號和格式。如需詳細資訊，請參閱[MoneyFormat](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/MoneyFormat.htm)。

可以使用下列時間格式變數：

* TimeFormat：這定義應用程式的時間格式。如需詳細資訊，請參閱[TimeFormat](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/TimeFormat.htm)。

* DateFormat：這定義應用程式的日期格式。如需詳細資訊，請參閱[DateFormat](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/DateFormat.htm)。

* TimestampFormat：這定義應用程式中時間戳記的資料和時間格式。如需詳細資訊，請參閱[TimestampFormat](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/TimestampFormat.htm)。

* FirstWeekDay： 這定義哪一天應定義為每週的第一天。如需詳細資訊，請參閱[FirstWeekDay](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/FirstWeekDay.htm)。

* BrokenWeeks：這定義跨年的週是否中斷。如需詳細資訊，請參閱[BrokenWeeks](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/BrokenWeeks.htm)。

* ReferenceDay：這定義一月份中哪天設為參考日來定義該年的第一週。如需詳細資訊，請參閱[ReferenceDay](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/ReferenceDay.htm)。

* FirstMonthOfYear：這定義要使用哪個月作為該年的第一個月。如需詳細資訊，請參閱[FirstMonthOfYear](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/number-interpretation-variables.htm#FirstMon)。

* MonthNames：這定義應用程式中使用的月份名稱簡寫形式。如需詳細資訊，請參閱[MonthNames](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/MonthNames.htm)。

* LongMonthNames：這定義應用程式中使用的月份名稱完整形式。如需詳細資訊，請參閱[LongMonthNames](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/LongMonthNames.htm)。

* DayNames：這定義應用程式中使用的星期名稱簡寫形式。如需詳細資訊，請參閱[DayNames](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/DayNames.htm)。

* LongDayNames：這定義用於應用程式的較長星期名稱形式。如需詳細資訊，請參閱[LongDayNames](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/LongDayNames.htm)。

下列變數可用於排序和搜尋比對：

* CollationLocale：指定用於排序順序和搜尋相符的地區設定。該值是地區設定的文化名稱，例如 'en-US'。