Hi,
Make a vbscript out of this code and it should demonstrate getting your array packed into one variable formatted with a comma and space between each element.
'======================
Dim NewArray(2)
Dim strNewString
Dim i
NewArray(0) = "Test0"
NewArray(1) = "Test1"
NewArray(2) = "Test2"
strNewString = NewArray(0)
i = 1
Do Until i = UBound(NewArray) + 1
strNewString = strNewString & ", " & NewArray(i)
i = i + 1
Loop
WScript.Echo strNewString
'========================
Output is:
"Test0, Test1, Test2"
mmcdonal
|