Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

Type Mismatch Error

$
0
0
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
Attached Images
 

Viewing all articles
Browse latest Browse all 688

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>