11.07.2015 Views

VBScript Reference Manual for InduSoft Web Studio - ICP DAS

VBScript Reference Manual for InduSoft Web Studio - ICP DAS

VBScript Reference Manual for InduSoft Web Studio - ICP DAS

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong><strong>VBScript</strong> <strong>Reference</strong> <strong>Manual</strong>COM Objects and CollectionsIn addition to user-defined Class Objects and <strong>VBScript</strong> Objects and Collections, there are manydifferent COM Objects (and Object Collections) and other system objects based on COM technologythat are accessible from <strong>VBScript</strong>. These Objects include:• ActiveX Controls inserted on an IWS Screen (via Insert OCX tool)• ActiveX Controls instantiated via <strong>VBScript</strong>• ADODB and ADOX Objects and Collections• Microsoft Office OLE Automation (Word, Excel, Access, Outlook & Components)• WMI• WSH• WSDL• XMLDOMActiveX Controls Inserted On An IWS Screen<strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong> (IWS) serves as an ActiveX control container, which is a parent program thatsupplies the environment <strong>for</strong> an ActiveX control to run. Through the IWS development interface (insertOCX tool), one or more ActiveX controls can be added to a screen. The OCX (ActiveX Control) mustfirst be registered, if it was not already done so as part of the installation of the ActiveX control. IWSprovides a Register Controls tool (under Tools on the toolbar) to allow registration of ActiveX controls,and to verify if a control has already been registered.After the OCX is inserted on the screen, IWS will assign the control a name. This name can bechanged in the Object Properties dialog box, accessed by double clicking on the control in the IWSdevelopment environment, but the name of the control must be unique from any other control used bythe current IWS application. In the Object Properties dialog box, the Configuration button will provideaccess to the Properties, Methods and Events accessible <strong>for</strong> this ActiveX control. In the Configurationdialog box, there is a tab <strong>for</strong> Events, which allow <strong>for</strong> the execution of a <strong>VBScript</strong> code segment if anEvent is triggered <strong>for</strong> the ActiveX control. In the Properties and Methods tabs, parameters, triggers,IWS tags, etc. can be tied to the various Properties and Methods.Microsoft Slider Control 6.0Configure the Control’s Properties,Methods & EventsSelect to input <strong>VBScript</strong> codesegments <strong>for</strong> the ActiveXControl Events<strong>InduSoft</strong>, Ltd. 39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!