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>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong> <strong>VBScript</strong> <strong>Reference</strong> <strong>Manual</strong><br />

In a <strong>Web</strong> Thin Client configuration, <strong>VBScript</strong>s associated with a screen can run either on the<br />

workstation runtime display or on a <strong>Web</strong> Thin Client station running Microsoft Internet Explorer. The<br />

<strong>VBScript</strong> routines that can execute on a <strong>Web</strong> Thin Client include those located in a Screen Script, a<br />

Command Dynamic, and an ActiveX Event. Since <strong>VBScript</strong> runs on all Microsoft operating system<br />

plat<strong>for</strong>ms, there are no limitations to <strong>VBScript</strong> running on any Microsoft compatible plat<strong>for</strong>m.<br />

<strong>VBScript</strong> Limitations in IWS<br />

Microsoft initially developed <strong>VBScript</strong> to work with websites (web pages). In the web server<br />

environment, <strong>VBScript</strong> was designed to work with the Windows Scripting host and ASP, which provide<br />

file access and <strong>for</strong>m generation. On the web client side, <strong>VBScript</strong> was designed to work with Microsoft<br />

Internet Explorer using HTML and DHTML, which provide display generation. So as a result of the initial<br />

design goals, <strong>VBScript</strong> does not have much in the way of built-in language support <strong>for</strong> Forms, File I/O,<br />

Communications or direct Printing control. Additionally, IWS has its own built-in web server and does<br />

not use ASP.<br />

By using IWS built-in functions, ActiveX controls and Microsoft Office Applications (or components),<br />

there are several methods <strong>for</strong> workarounds to these limitations as well as to extend <strong>VBScript</strong>’s<br />

capability.<br />

The following are some of <strong>VBScript</strong>’s limitations and workarounds.<br />

Item <strong>VBScript</strong> Workarounds<br />

Forms Does not support Use IWS objects <strong>for</strong> user interface, pass parameters to<br />

IWS. Can also use ActiveX Controls.<br />

File I/O Limited support directly Use Scripting Objects and/or IWS built-in functions. Can<br />

also use ActiveX Controls.<br />

Communications Does not directly support Use IWS built-in functions or 3 rd party ActiveX controls<br />

Printing Does not directly support Use Microsoft Office Applications or IWS built-in functions<br />

Charting/Graphing Does not directly support Use IWS trending, Microsoft Office Applications, Microsoft<br />

Office Components, or 3 rd party ActiveX controls<br />

DDE Does not support Supported in IWS built-in commands (not under Windows<br />

CE).<br />

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

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

Saved successfully!

Ooh no, something went wrong!