错误报告了空行 [英] Error reported on a blank line

查看:128
本文介绍了错误报告了空行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的难倒今天下午没有做过搜索无果的还真不少。我收到错误

I am truly stumped this afternoon and have done quite a bit of searching to no avail. I am getting the error

对象不支持此属性或方法/admin/Uplo​​ad1_20120508JB.asp,行91

"Object doesn't support this property or method /admin/Upload1_20120508JB.asp, line 91"

从下面的code:

        90 wf = fso2.CreateTextFile(sWriteFilePath)
        91 
        92 If fso1.FileExists(sReadFilePath) Then ...

91号线是空白,90号线将按预期,该文件被在正确的位置创建。有没有人见过这样的事情之前?如果是这样,究竟是什么解决方案?

Line 91 is blank and Line 90 works as expected, the file gets created in the proper location. Has anyone seen anything like this before? If so, what was the solution?

谢谢!

推荐答案

您必须使用设置后,当你将一个对象变量。

You must use Set, when you assign an object to a variable.

(见这里 的认识到,今天是VBScript中的这一功能是糟糕的一天。)

(see here to realize that today is a bad day for this feature of VBScript.)

这篇关于错误报告了空行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆