Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

傳回包含指定之子站數的零型一維 陣列 。

語法

分割 ( 表示 式 [, 分隔符 ] [, limit ] [, compare ] )

Split 函數語法具有下列自變數:

引數

描述

expression

必要。 包含子字串和分隔符的字串表示式。 如果 expression 是零長度字串 (“ ) ,Split 會傳回空白陣列,也就是沒有元素且沒有數據的數位。

分隔符號

選擇性。 用來識別子字串限制的字串。 如果省略,則會假設空格字元 (“ ”) 為分隔符。 如果 分隔符 是零長度字串,則會傳回包含整個 運算 式字元串的單一元素陣列。

限制

選擇性。 要傳回的子字串數目;–1 表示所有子字串都會傳回。

compare

選擇性。 指出評估子字串時要使用的比較類型的數值。 請參閱值的 [設定] 區段。


設定

compare 自變數可能具有下列值:

常數

描述

vbUseCompareOption

–1

使用 [選項比較 ] 語句的設定執行比較。

vbBinaryCompare

0

執行二進位比較。

vbTextCompare

1

執行文字比較。

vbDatabaseCompare

2

Microsoft Office Access 2007 。 根據資料庫中的資訊執行比較。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×