Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing a collection object in an ActiveX Control using VBscript 1

Status
Not open for further replies.

Yazster

Programmer
Sep 20, 2000
175
0
0
CA
I have created an ActiveX control (OCX) which contains a collection object, declared as PUBLIC. I would like to display on a web page the contents of this collection.

I have other properties and methods that work fine on the control, but I can't seem to access the collection.

I tried this:
document.writeln MyControl.myCollection.Count()

This works fine in a regular VB application, but in VBscript, I get the following error:

Error in Loading DLL: 'MyControl.mycollection.count'

Any help would be greatly appreciated. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top