18.01.2013 Views

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>VBScript</strong> <strong>Reference</strong> <strong>Manual</strong> <strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong><br />

ActiveX Events<br />

IWS is an ActiveX container, supporting ActiveX controls, generally inserted on a given graphical<br />

screen. With IWS Version 6.1, there is a <strong>VBScript</strong> interface to ActiveX Events so that an ActiveX object<br />

event can trigger a <strong>VBScript</strong> code segment.<br />

The steps to accessing the <strong>VBScript</strong> ActiveX Event interface are as follows:<br />

1. Select the ActiveX object on the Screen currently opened in the IWS workspace. Right<br />

click on the object to open its Object Properties dialog box. If you need to insert an<br />

ActiveX object, select the ActiveX Control icon from the Mode toolbar and then right click<br />

on the object<br />

In the lower right corner of the ActiveX<br />

Object Properties dialog box will be a<br />

Configuration button. Click this to open up<br />

the Configuration options dialog box.<br />

2. Click on the Events tab (as<br />

shown at the right).<br />

3. Click on the … button in the<br />

Script Column <strong>for</strong> the event you<br />

want to write <strong>VBScript</strong> <strong>for</strong>.<br />

This is the scripting interface <strong>for</strong> ActiveX Events. Be sure<br />

<strong>VBScript</strong> language is selected. You can now insert code that<br />

will execute when the selected ActiveX Event is triggered.<br />

Within the ActiveX Event interface, you enter <strong>VBScript</strong><br />

variables and executable statements subject to the following<br />

conditions:<br />

• Any variable declared in this interface will only have a<br />

local scope.<br />

• You cannot implement procedures (i.e. Subroutines or<br />

Functions) within this interface.<br />

50 <strong>InduSoft</strong>, Ltd.

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

Saved successfully!

Ooh no, something went wrong!