Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

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

From the following code:

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

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?

Thanks!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
165 views
Welcome To Ask or Share your Answers For Others

1 Answer

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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...