Access to a collection of classes

C

Chad Johnson

I have written an ActiveX Exe in VB6 and placed it on an HTML page. I
now want to access a property of the ActiveX Exe (Test3) that is a
collection (Buttons) of "Button" classes in javascript. Each instance
of the Button class contains a ButtonId property and a TimeStamp
property which are both strings. I thought I could do the following
similar to how I access the collection in a VB6 test container project
I wrote:

function GetData_Click()
{
var sID

for (i=0; i < Test3.TotalButtons - 1;i++)
sID = Test3.Buttons.ButtonID;
}

When I execute the function though I get 'Test3.Buttons[...].ButtonID'
is null or not an object.

I'm not very well versed in javascript. Any help would be greatly
appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top