# 系統變數

系統變數，其中部分是系統定義的，提供系統和 Qlik Sense 應用程式的相關資訊。

使用每個函數中的下拉式功能表，以查看每個函數的簡要描述及語法。使用每個函數中的下拉式功能表，以查看每個函數的簡要描述及語法。 對於部分函數，您可以透過按一下語法描述中的函數名稱，來取得特定函數的進一步詳細資料。

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### CreateSearchIndexOnReload

此變數定義是否應在資料重新載入期間建立搜尋索引檔案。

[**CreateSearchIndexOnReload**](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/CreateSearchIndexOnReload.htm)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### Floppy

傳回所找到第一個軟碟機的磁碟機代號，通常是 a:。 這是系統定義的變數。

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)Floppy

資訊備註標準模式下不支援這個變數。請參閱[檔案系統存取限制](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/LoadData/file-system-access-restriction.htm)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### CD

傳回所找到第一個光碟機的磁碟機代號。如果找不到 CD-ROM，則會傳回 c:。 這是系統定義的變數。

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)CD

資訊備註標準模式下不支援這個變數。請參閱[檔案系統存取限制](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/LoadData/file-system-access-restriction.htm)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### HidePrefix

以此文字字串開頭的所有欄位名稱將予以隱藏，隱藏方式與系統欄位一樣。 這是使用者定義的變數。

[**HidePrefix**](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/HidePrefix.htm)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### HideSuffix

以此文字字串結尾的所有欄位名稱將予以隱藏，隱藏方式與系統欄位一樣。 這是使用者定義的變數。

[**HideSuffix**](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/HideSuffix.htm)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### Include

Include/Must\_Include 變數會指定包含應該納入指令碼並且評估為指令碼之文字的檔案。這不是用來新增資料。您可以將指令碼的各部分儲存在獨立文字檔中，並在數個應用程式中重複使用。 這是使用者定義的變數。

$([**Include**](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/Include.htm)=filename)

$(Must\_Include=filename)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### OpenUrlTimeout

此變數會定義 Qlik Sense 在從 URL 來源 (例如HTML 頁面) 取得資料時應遵守的逾時 (以秒為單位)。如果省略，逾時約為 20 分鐘。

[**OpenUrlTimeout**](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/OpenUrlTimeout.htm)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### QvPath

會傳回 Qlik Sense 執行檔的瀏覽字串。 這是系統定義的變數。

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)QvPath

資訊備註標準模式下不支援這個變數。請參閱[檔案系統存取限制](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/LoadData/file-system-access-restriction.htm)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### QvRoot

會傳回 Qlik Sense 執行檔的根目錄。 這是系統定義的變數。

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)QvRoot

資訊備註標準模式下不支援這個變數。請參閱[檔案系統存取限制](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/LoadData/file-system-access-restriction.htm)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### QvWorkPath

將瀏覽字串傳回目前 Qlik Sense 應用程式。 這是系統定義的變數。

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)QvWorkPath

資訊備註標準模式下不支援這個變數。請參閱[檔案系統存取限制](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/LoadData/file-system-access-restriction.htm)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### QvWorkRoot

傳回目前 Qlik Sense 應用程式的根目錄。 這是系統定義的變數。

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)QvWorkRoot

資訊備註標準模式下不支援這個變數。請參閱[檔案系統存取限制](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/LoadData/file-system-access-restriction.htm)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### StripComments

如果此變數設為 0，將會禁止在指令碼中移除 /\*..\*/ 與 // 註解。若未定義此變數，將一律移除註解。

[**StripComments**](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/StripComments.htm)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### Verbatim

通常所有欄位值在載入 Qlik Sense 資料庫前，會先自動移除前置與尾端的空白字元 (ASCII 32)。將此變數設為 1 可暫停移除空白字元。永遠不會移除定位點分隔 (ASCII 9) 和硬空格 (ANSI 160) 字元。

[**Verbatim**](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/Verbatim.htm)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### WinPath

將瀏覽字串傳回 Windows。 這是系統定義的變數。

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)WinPath

資訊備註標準模式下不支援這個變數。請參閱[檔案系統存取限制](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/LoadData/file-system-access-restriction.htm)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### WinRoot

傳回 Windows 的根目錄。 這是系統定義的變數。

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)WinRoot

資訊備註標準模式下不支援這個變數。請參閱[檔案系統存取限制](https://help.qlik.com/zh-TW/sense/November2024/Subsystems/Hub/Content/Sense_Hub/LoadData/file-system-access-restriction.htm)

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### CollationLocale

指定用於排序順序和搜尋相符的地區設定。該值是地區設定的文化名稱，例如 'en-US'。這是系統定義的變數。

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)CollationLocale