简体   繁体   中英

VBScript runtime error '800a01a8' Object required:

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?

myArray = Split(myString, "-")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM