VBScript runtime error '800a01a8' Object required:

十年热恋 提交于 2019-12-13 20:09:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!