问题
I'm completely new to VB and have run into what I imagine must be a common error for noobs. I'm trying to split a string into an array with this snippet:
Dim myString, myArray
myString = "split-this"
myArray = myString.Split("-")
This gives me the error:
Microsoft VBScript runtime error '800a01a8'
Object required: 'split-this'
Could someone kindly tell me what I'm missing?
回答1:
myArray = Split(myString, "-")
来源:https://stackoverflow.com/questions/21934624/vbscript-runtime-error-800a01a8-object-required