01-03-2013, 12:41 PM
(This post was last modified: 01-03-2013, 01:23 PM by Aarush.click.)
Hi , I found an VB script program on a site
in this program MyArray is a variable as it is not declared with the parenthesis.
then how this program is working ?
Can we declare an array without parenthesis ?
Please help me
Code:
Dim MyString, MyArray, Msg
MyString = "VBScriptXisXfun!"
MyArray = Split(MyString, "x", -1, 1)
' MyArray(0) contains "VBScript".
' MyArray(1) contains "is".
' MyArray(2) contains "fun!".
Msg = MyArray(0) & " " & MyArray(1)
Msg = Msg & " " & MyArray(2)
MsgBox Msg
in this program MyArray is a variable as it is not declared with the parenthesis.
then how this program is working ?
Can we declare an array without parenthesis ?
Please help me