Loading ...
Sorry, an error occurred while loading the content.
 

Re: [ASCOM] Re: Problem using FilterWheel.Names and Util.ToStringCollection

Expand Messages
  • Bob Denny
    ... var e = new Enumerator(convertedNames); for( ;!e.atEnd(); e.moveNext()) WScript.Echo(e.item());
    Message 1 of 3 , Nov 1, 2011
      You said:
      var fw = new ActiveXObject("ASCOM.Simulator.FilterWheel");
      var util = new ActiveXObject("ASCOM.Utilities.Util");
      fw.Connected=true;
      var convertedNames = util.ToStringCollection(fw.Names);
      
      var e = new Enumerator(convertedNames);
      for( ;!e.atEnd(); e.moveNext())
          WScript.Echo(e.item());


    Your message has been successfully submitted and would be delivered to recipients shortly.