手机
当前位置:查字典教程网 >脚本专栏 >vbs >VBS教程:函数-Join 函数
VBS教程:函数-Join 函数
摘要:Join函数返回一个字符串,此字符串由包含在数组中的许多子字符串联接创建。Join(list[,delimiter])参数list必选项。包...

Join 函数

返回一个字符串,此字符串由包含在数组中的许多子字符串联接创建。

Join(list[,delimiter]

)

参数

list

必选项。包含要联接的子字符串一维数组。

Delimiter

可选项。在返回字符串中用于分隔子字符串的字符。如果省略,将使用空字符 ("")。如果

delimiter 是零长度字符串,则在同一列表中列出全部项,没有分界符。

说明

下面的示例利用

Join 函数联合 MyArray 的子字符串:

复制代码 代码如下:

Dim MyString

Dim MyArray(3)

MyArray(0) = "Mr."

MyArray(1) = "John "

MyArray(2) = "Doe "

MyArray(3) = "III"

MyString = Join(MyArray) 'MyString 包含 "Mr. John Doe III"。

【VBS教程:函数-Join 函数】相关文章:

VBS教程:函数-UBound 函数

VBS教程:函数-Weekday 函数

VBS教程:函数-TimeSerial 函数

VBS教程:函数-LoadPicture 函数

VBS教程:函数-ScriptEngineMajorVersion 函数

VBS教程:函数-Tan 函数

VBS教程:函数-Mid 函数

VBS教程:函数-Log 函数

VBS教程:函数-Abs 函数

VBS教程:函数-Sqr 函数

精品推荐
分类导航