简体   繁体   English

VBScript运行时错误'800a01a8'所需对象:

[英]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. 我是VB的新手,遇到了我认为对于菜鸟来说肯定是一个常见错误。 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, "-")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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