I am trying to learn VB Script...
I have a simple program that gives me a type mismatch error and I can't figure out why...
Is there a smart and kind person who may be able to help a newbie?
Here is my code:
Dim var, arrNames()
'get the input
Var = InputBox("Enter Comma-delimited list of names:")
'split into an array
arrNames = Split(var,",")
'display the second name
MsgBox arrNames(1)
Here is me Error:
Attachment 90883
I have a simple program that gives me a type mismatch error and I can't figure out why...
Is there a smart and kind person who may be able to help a newbie?
Here is my code:
Dim var, arrNames()
'get the input
Var = InputBox("Enter Comma-delimited list of names:")
'split into an array
arrNames = Split(var,",")
'display the second name
MsgBox arrNames(1)
Here is me Error:
Attachment 90883