473,383 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

VBscript error “VB runtime error : Object required”

We are writing test scripts to our product.
In one of the script we are facing an issue.

This test script will create a COM component and
executes the following function. O1 and O2 are out parameters.

v2iAuto.ComputerPolicyLevel(False, o1, o2)

We are facing issue while iterating through 02 object.
O2 contains array of variants(Interface objects)
say I1,Which in turn each I1 interface object contains list of
another interface objects say I2 and we tried access property of
interface I2.

The following is the code that i tried iterate through
o2 object.
If IsArray(o2) Then
for each oVar in o2(0) (temporally I'm trying for 0th element)
obj = oVar.Level
WScript.Echo .Level
next
End if

Error:
I'm getting “VB runtime error : Object required” after executing line

obj = oVar.Level


but i have also tried as

Set obj = oVar.Level

Still was getting same error
Mar 31 '10 #1
3 3701
CroCrew
564 Expert 512MB
What error(s)?

CroCrew~
Apr 5 '10 #2
CroCrew
564 Expert 512MB
Opps,

Your getting:

I'm getting “VB runtime error : Object required” after executing line

Looking into it....

CroCrew~
Apr 5 '10 #3
Frinavale
9,735 Expert Mod 8TB
I moved this question to the ASP forum because it's not a VB.NET question.
This way if CroCrew isn't able to help you, you'll have more of a chance at getting help on the topic.

-Frinny
Apr 13 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: | last post by:
I'm trying to create a vbscript so that I can autologin and get my tasks done unattended. As part of my code, I'm trying to click to get the vbscript to click the "Login" button but I'm always...
1
by: Matrix | last post by:
I just got one virtual directory setup and try to run my web application from there. I am getting following error Microsoft VBScript runtime error '800a01a8' Object required: 'Session' I even...
2
by: Pippen | last post by:
Below is a code snippet that is throwing the following error: Error Source: Microsoft DTS Package Error Description: Error Code: 0 Error Source= Microsoft VBScript runtime error Error...
1
by: Carolyn Speakman | last post by:
Hi, I'm trying to amend an intranet .asp page but keep getting this error. The error only occurs when I pull the WHOLE intranet off the server and try to run it locally. The error isn't there...
2
by: Jessard | last post by:
Help! Hi, I'm having a bit (well a lot - it's getting annoying) of trouble using a C# class library within a VBScript on a computer other than the development machine. All the class is needed...
1
by: Erica | last post by:
Here is the error I get. Line 13 is the 'do while f.AtEndOfStream = false' line. Your help is very much appreciated! Microsoft VBScript runtime error '800a01a8' Object required: 'f' ...
1
by: PaulieS | last post by:
Hi all. Am migrating a customer from IIS5 on W2K server to IIS6 on W2K3. Zipped all the websites and unzipped them to the identical locations on new server. Used IISMT to migrate metabase. ...
0
by: mrdanny2007 | last post by:
I have a DLL or assembly that I created in .NET that calls a webservice. I registered this as a COM Interop using regasm. I then opended the registry to check the objects and saw that one of the...
4
by: Genken | last post by:
Hi can anybody help me i get this error when running this code. Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: '' And then a line number indicating where the error is, i...
10
by: jasone | last post by:
hi everyone! any advice given will be MUCH appreciated, i have spent about 10 hours on this bit of script... a rating system. I am having realt trouble overcoming this problem at runtime ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.