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...

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>Table of ContentsAbout <strong>VBScript</strong>......................................................................................................................................5<strong>VBScript</strong> Limitations in IWS..................................................................................................................7The Microsoft Visual Basic Family.........................................................................................................8Differences between <strong>VBScript</strong> and VBA ................................................................................................9<strong>VBScript</strong> Hosting Environments...........................................................................................................10<strong>VBScript</strong> Language Overview ..............................................................................................................11<strong>VBScript</strong> Functionality .....................................................................................................................11<strong>VBScript</strong> Elements ...........................................................................................................................11Variable Data Types and Subtypes....................................................................................................12Data Subtype Identification...............................................................................................................12Data Subtype Conversion..................................................................................................................12Variable Naming Rules & Conventions.............................................................................................13Variable Scope..................................................................................................................................13<strong>VBScript</strong> Constants...........................................................................................................................13Declaring <strong>VBScript</strong> Variables and Constants ....................................................................................14<strong>VBScript</strong> Keywords..........................................................................................................................14Operators ..........................................................................................................................................14Operator Precedence .........................................................................................................................15Functions ..........................................................................................................................................15Statements ........................................................................................................................................18Objects and Classes ..............................................................................................................................21<strong>VBScript</strong> Object Commands.............................................................................................................23<strong>VBScript</strong> User-Defined Class Objects...............................................................................................24<strong>VBScript</strong> Objects and Collections.....................................................................................................28Err Object .....................................................................................................................................29Scripting Dictionary Object...........................................................................................................30Scripting FileSystemObject...........................................................................................................31COM Objects and Collections...........................................................................................................39<strong>VBScript</strong> Configuration and Operation in IWS .....................................................................................43Global Procedures.............................................................................................................................45Graphics Script .................................................................................................................................46Screen Scripts ...................................................................................................................................47Command Dynamic ..........................................................................................................................49ActiveX Events.................................................................................................................................50Background Task Startup Script........................................................................................................51Background Task Script Groups........................................................................................................51Scope of <strong>VBScript</strong> Procedures and Variables....................................................................................53Accessing IWS Tags and IWS Built-in functions ..............................................................................55Accessing ActiveX Objects from <strong>VBScript</strong>.......................................................................................58IntelliSense .......................................................................................................................................60<strong>VBScript</strong> with <strong>Web</strong> Thin Clients.......................................................................................................62<strong>VBScript</strong> Language <strong>Reference</strong>..............................................................................................................63<strong>VBScript</strong> Variables...........................................................................................................................64Variable Data Types and Subtypes................................................................................................64<strong>InduSoft</strong>, Ltd. 3

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

Saved successfully!

Ooh no, something went wrong!