Anyone know why this code won't work? taken from the SDK jscript example listpub.js

Discussion in 'Windows Media Player' started by couryhouse, Jan 10, 2007.

  1. couryhouse

    couryhouse Guest

    Anyone know why this code won't work? taken from the SDK jscript
    example listpub.js
    essentially identical code in VBScript also fails the same way,
    I.E. both scripts can create the server object and access it's methods
    and properties, but cannot access any properties in any pub point in
    the
    PublishingPoints collection.
    1: objServer = new ActiveXObject( "WMSServer.server", szArgServer );
    //works
    2: dwNumPubPoints = objServer.PublishingPoints.Count; //works
    3: objPubPoint = objServer.PublishingPoints.Item( i );
    4: dwPubPointType = objPubPoint.Type; //FAILS with element not
    found

    In other words:
    mystuff = objServer.name; This works
    mystuff = objServer.PublishingPoints.Count; This Works
    mystuff = objServer.PublishingPoints.Item(i).name; DOESN'T work
    Do I have something turned off somewhere??
    Thanks
    ****************************************
     
    couryhouse, Jan 10, 2007
    #1
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.