SlideShare a Scribd company logo
 InduSoft VBScript Webinar
Easy, flexible and powerful: While easy to learn and get started by using only simple
commands, you can also create very powerful functionality. Fully integrated within the
InduSoft Web Studio development environment.

Many resources available: VBScript has been around since 1991, free online information
and resources are abundant.

Portability and Scalability: Compatible with all Microsoft platforms supported by
InduSoft, including Windows CE Mobile, Windows CE, Windows XP Embedded, Windows
XP, Windows Vista, Windows 7, Windows 2003 Server, and Windows 2008 Server R2.

Create powerful SQL database interfaces quickly: Rapidly create simple interfaces or
libraries that interact with any SQL database.

Interact with ActiveX objects and COM Servers programmatically: Easily interface with 3rd
party ActiveX controls by simply using its name and property/method/event.

Produce reusable functions and subroutines: Have the need to reuse functionality
anywhere in your project? Create your own global procedures.
Studio Manager.exe
                          DDE Server        OPC Client


             DDE Client                                  OPC Server


    Driver                             Tags                        Database
   Runtime                           Database                   Client Runtime


              ODBC                                       Background
             Runtime                                        Task

                            TCP/IP              TCP/IP     Alarms
                            Server              Client     Trends
                                                           Recipes
Viewer.exe                                                 Reports
                           Viewer                          Math
                                                           Script
                                                           Scheduler
 InduSoft VBScript Webinar
Library                  Execution          Scope and Lifetime of
         Interface                                  BGTask         Viewer         variables and
                           Variables   Procedures                                  procedures
                                                    (Server)       (Local)
Global Procedures            Yes             Yes     Yes**          Yes**     Global
                                                                              Graphic Script
Graphic Scripts              Yes             Yes                        Yes   *Screen Script
                                                                              *Screen Controls
                                                                              Screen Script
Screen Scripts               Yes             Yes                        Yes
                                                                              Screen Controls
Screen Controls
                             Yes                                        Yes   Screen Control itself
(Command, ActiveX, .NET)
                                                                              Startup Script
Startup Script               Yes             Yes      Yes
                                                                              Script Groups
Script Groups                Yes                      Yes                     Script Group itself

* Using the Graphics.<Variable_or_Procedure_name> syntax.
** Global Procedures is a repository (library) of user-defined sub-routines and
functions, which can be called from any VBScript interface in the project. It is not an
execution module (thread) by itself.
Declaring variables (Dim) and constants (Const)


Calling Procedures (Call) and defining parameters (ByRef, ByVal)


Intellisense
Built-in $Trace() function        Output Window messages



VBScript MsgBox function



Error Handling with On Error Resume Next / On Error Goto 0
If…Then statement                     If...Then...ElseIf statement
executes a set of code when a         selects one of many sets of lines to
condition is true                     execute




If...Then...Else statement
selects one of two sets of lines to
execute

                                      Select Case statement
                                      selects one of many sets of lines to
                                      execute
For…Next statement                      Do...Loop statement
runs code a specified number of times   selects one of many sets of lines to
                                        execute




For each...Next statement
selects one of two sets of lines to
execute
Date/Time functions (DateAdd, DateDiff, etc)
Conversion functions (Asc, Chr, etc)
Format Functions (FormatDateTime, etc)
Math Functions (Rnd, Sqr, etc)
Array Functions (Ubound, etc)
String Functions (LCase, Ucase, etc)
Other Functions (MsgBox, InputBox, CreateObject, etc)
$RunGlobalProcedureOnServer()
$RunGlobalProcedureASync()
$RunGlobalProcedureASyncGetStatus()


$RunGlobalProcedureOnFalse()
$RunGlobalProcedureOnTrue()
$RunGlobalProcedureOnTrigger()
InduSoft Web Studio main Database/ERP built-in functions:

$DBExecute()




$DBCursorOpenSQL()
$DBCursorClose()
$DBCursorRowCount
$DBCursorGetValue()
$DBCursorNext()
ActiveX interface (properties, methods, and events)




COM Server interface (CreateObject statement)
InduSoft Web Studio Technical Reference Manual (Help)


W3SCHOOLS Web Site
(http://w3schools.com/vbscript/default.asp)


Microsoft MSDN
(http://msdn.microsoft.com/en-us/library/t0aew7h6)
 InduSoft VBScript Webinar
 InduSoft VBScript Webinar
Email
   (US)           info@indusoft.com
   (Brazil)       info@indusoft.com.br
   (Germany)      info@indusoft-germany.de
                                                            USA
Support           support@indusoft.com
Web site
   (English)      www.indusoft.com
   (Portuguese)   www.indusoft.com.br
   (German)       www.indusoft-germany.de         Brazil
Phone             (512) 349-0334 (US)
                  +55-11-3293-9139 (Brazil)
                  +49 (0) 6227-732510 (Germany)            Germany
Toll-Free         877-INDUSOFT (877-463-8763)
Fax               (512) 349-0375

More Related Content

PPTX
Grid Objects in InduSoft Web Studio
PPTX
Custom Widgets Tutorial InduSoft Web Studio (IWS)
PPTX
InduSoft Trend Webinar
PDF
LCU13: An Introduction to ARM Trusted Firmware
PDF
PLC.pdf
PPTX
Mieszko Zielinski (Epic Games), White Nights 2015
PDF
Computer Graphics - Lecture 01 - 3D Programming I
PDF
XPDDS18: The Evolution of Virtualization in the Arm Architecture - Julien Gra...
Grid Objects in InduSoft Web Studio
Custom Widgets Tutorial InduSoft Web Studio (IWS)
InduSoft Trend Webinar
LCU13: An Introduction to ARM Trusted Firmware
PLC.pdf
Mieszko Zielinski (Epic Games), White Nights 2015
Computer Graphics - Lecture 01 - 3D Programming I
XPDDS18: The Evolution of Virtualization in the Arm Architecture - Julien Gra...

What's hot (20)

PPTX
Unity3D Programming
PDF
LCA13: Power State Coordination Interface
PPTX
Introduction to the rockwell automation library of process objects
PPTX
Graphical Interface Scaling in InduSoft Web Studio
PDF
Fpgaでの非同期信号の扱い方とvivadoによるサポート(公開用)
PPT
SystemVerilog OOP Ovm Features Summary
PDF
Embedded Android : System Development - Part II (HAL)
PDF
Reconnaissance of Virtio: What’s new and how it’s all connected?
PDF
05.2 virtio introduction
PPT
SIEMENS S7-300c.ppt
PDF
HTML5 Apps on AGL Platform with the Web Application Manager (Automotive Grade...
PDF
PCI Express Verification using Reference Modeling
ODP
Embedded Android : System Development - Part III
PDF
Low Level View of Android System Architecture
PDF
XPDDS17: Shared Virtual Memory Virtualization Implementation on Xen - Yi Liu,...
PPTX
Présentation de Microsoft Office 365 et des briques de sécurité Fédération, P...
PPTX
Batman project
PPT
"Learning AOSP" - Android Hardware Abstraction Layer (HAL)
PPTX
A Certain Slant of Light - Past, Present and Future Challenges of Global Illu...
PPTX
Android audio system(audioplicy_service)
Unity3D Programming
LCA13: Power State Coordination Interface
Introduction to the rockwell automation library of process objects
Graphical Interface Scaling in InduSoft Web Studio
Fpgaでの非同期信号の扱い方とvivadoによるサポート(公開用)
SystemVerilog OOP Ovm Features Summary
Embedded Android : System Development - Part II (HAL)
Reconnaissance of Virtio: What’s new and how it’s all connected?
05.2 virtio introduction
SIEMENS S7-300c.ppt
HTML5 Apps on AGL Platform with the Web Application Manager (Automotive Grade...
PCI Express Verification using Reference Modeling
Embedded Android : System Development - Part III
Low Level View of Android System Architecture
XPDDS17: Shared Virtual Memory Virtualization Implementation on Xen - Yi Liu,...
Présentation de Microsoft Office 365 et des briques de sécurité Fédération, P...
Batman project
"Learning AOSP" - Android Hardware Abstraction Layer (HAL)
A Certain Slant of Light - Past, Present and Future Challenges of Global Illu...
Android audio system(audioplicy_service)
Ad

Viewers also liked (8)

PPTX
Scripting in InduSoft Web Studio
PPTX
InduSoft Web Studio v7.1 + SP3 Best Practices
PPTX
What's New In InduSoft Web Studio 8.0 +SP1
PPTX
What is New in Wonderware InduSoft Web Studio 8.0+SP1+Patch 1
PPTX
InduSoft SCADA Best Practices
PPTX
Debugging VBScript in InduSoft Web Studio Projects
PPTX
Introduction to InduSoft Web Studio 8.0 + SP1
PPTX
InduSoft Database Redundancy Webinar
Scripting in InduSoft Web Studio
InduSoft Web Studio v7.1 + SP3 Best Practices
What's New In InduSoft Web Studio 8.0 +SP1
What is New in Wonderware InduSoft Web Studio 8.0+SP1+Patch 1
InduSoft SCADA Best Practices
Debugging VBScript in InduSoft Web Studio Projects
Introduction to InduSoft Web Studio 8.0 + SP1
InduSoft Database Redundancy Webinar
Ad

Similar to InduSoft VBScript Webinar (20)

PDF
Know More About Rational Performance - Snehamoy K
PDF
3 know more_about_rational_performance_tester_8-1-snehamoy_k
 
PPTX
.Net + novas tecnologias + win8
PPTX
Непрерывное тестирование для улучшения качества кода
PDF
Plugin-able POS Solutions by Javascript @HDM9 Taiwan
PDF
Windows Azure Interoperability
PDF
Oscon2007 Windmill
PPT
Visual studio.net
PDF
SVG in Data Acquisition and Control Systems
PPTX
Yogesh kumar kushwah represent’s
PPT
Java script anywhere. What Nombas was doing pre-acquisition.
PPTX
Depurando VBScript no InduSoft Web Studio
PPT
Csharp dot net
PPTX
Win8 ru
PDF
Android RenderScript on LLVM
PPTX
Java Starting
PPT
Tuning and development with SIP Servlets on Mobicents
PPTX
Coding Naked
Know More About Rational Performance - Snehamoy K
3 know more_about_rational_performance_tester_8-1-snehamoy_k
 
.Net + novas tecnologias + win8
Непрерывное тестирование для улучшения качества кода
Plugin-able POS Solutions by Javascript @HDM9 Taiwan
Windows Azure Interoperability
Oscon2007 Windmill
Visual studio.net
SVG in Data Acquisition and Control Systems
Yogesh kumar kushwah represent’s
Java script anywhere. What Nombas was doing pre-acquisition.
Depurando VBScript no InduSoft Web Studio
Csharp dot net
Win8 ru
Android RenderScript on LLVM
Java Starting
Tuning and development with SIP Servlets on Mobicents
Coding Naked

More from AVEVA (20)

PPTX
What's New In InduSoft Web Studio 8.1 + SP5 from AVEVA
PPTX
What's New In InduSoft Web Studio 8.1 + SP4
PPTX
Introduction to InduSoft Web Studio 8.1 + SP5
PPTX
What's New In InduSoft Web Studio 8.1 + SP3
PPTX
Introduction to InduSoft Web Studio 8.1 + SP3
PPTX
Introduction to InduSoft Web Studio 8.1 + SP2
PPTX
What's New In InduSoft Web Studio 8.1 + SP2
POTX
Alarm Notifications with WIN-911 NOW Available for InduSoft Web Studio - Indu...
PPTX
Alarm Notifications with WIN-911 NOW Available for InduSoft Web Studio - WIN-...
PPTX
Introduction to InduSoft Web Studio 8.1 + Service Pack 1
PPTX
What's New In InduSoft Web Studio 8.1 + SP1
PPTX
Introduction to InduSoft Web Studio 8.1 + SP1
PPTX
Security and LDAP integration in InduSoft Web Studio
PPTX
What's New In InduSoft Web Studio 8.1
PPTX
Introduction to InduSoft Web Studio 8.1
PPTX
What’s coming in InduSoft Web Studio 8.1
PPTX
Webinar: OPC UA Clients on Linux Systems with InduSoft Web Studio-OPC Foundat...
PPTX
Webinar: OPC UA Clients on Linux Systems with InduSoft Web Studio-InduSoft Pr...
PPTX
Tips and Tricks for InduSoft Web Studio-August 2017
PPTX
InduSoft Presentation: Advanced System Integration Techniques for InduSoft We...
What's New In InduSoft Web Studio 8.1 + SP5 from AVEVA
What's New In InduSoft Web Studio 8.1 + SP4
Introduction to InduSoft Web Studio 8.1 + SP5
What's New In InduSoft Web Studio 8.1 + SP3
Introduction to InduSoft Web Studio 8.1 + SP3
Introduction to InduSoft Web Studio 8.1 + SP2
What's New In InduSoft Web Studio 8.1 + SP2
Alarm Notifications with WIN-911 NOW Available for InduSoft Web Studio - Indu...
Alarm Notifications with WIN-911 NOW Available for InduSoft Web Studio - WIN-...
Introduction to InduSoft Web Studio 8.1 + Service Pack 1
What's New In InduSoft Web Studio 8.1 + SP1
Introduction to InduSoft Web Studio 8.1 + SP1
Security and LDAP integration in InduSoft Web Studio
What's New In InduSoft Web Studio 8.1
Introduction to InduSoft Web Studio 8.1
What’s coming in InduSoft Web Studio 8.1
Webinar: OPC UA Clients on Linux Systems with InduSoft Web Studio-OPC Foundat...
Webinar: OPC UA Clients on Linux Systems with InduSoft Web Studio-InduSoft Pr...
Tips and Tricks for InduSoft Web Studio-August 2017
InduSoft Presentation: Advanced System Integration Techniques for InduSoft We...

Recently uploaded (20)

DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Approach and Philosophy of On baking technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
The AUB Centre for AI in Media Proposal.docx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Programs and apps: productivity, graphics, security and other tools
Mobile App Security Testing_ A Comprehensive Guide.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Spectroscopy.pptx food analysis technology
Building Integrated photovoltaic BIPV_UPV.pdf
Unlocking AI with Model Context Protocol (MCP)
Network Security Unit 5.pdf for BCA BBA.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
20250228 LYD VKU AI Blended-Learning.pptx
Chapter 3 Spatial Domain Image Processing.pdf
MIND Revenue Release Quarter 2 2025 Press Release
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Approach and Philosophy of On baking technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

InduSoft VBScript Webinar

  • 2. Easy, flexible and powerful: While easy to learn and get started by using only simple commands, you can also create very powerful functionality. Fully integrated within the InduSoft Web Studio development environment. Many resources available: VBScript has been around since 1991, free online information and resources are abundant. Portability and Scalability: Compatible with all Microsoft platforms supported by InduSoft, including Windows CE Mobile, Windows CE, Windows XP Embedded, Windows XP, Windows Vista, Windows 7, Windows 2003 Server, and Windows 2008 Server R2. Create powerful SQL database interfaces quickly: Rapidly create simple interfaces or libraries that interact with any SQL database. Interact with ActiveX objects and COM Servers programmatically: Easily interface with 3rd party ActiveX controls by simply using its name and property/method/event. Produce reusable functions and subroutines: Have the need to reuse functionality anywhere in your project? Create your own global procedures.
  • 3. Studio Manager.exe DDE Server OPC Client DDE Client OPC Server Driver Tags Database Runtime Database Client Runtime ODBC Background Runtime Task TCP/IP TCP/IP Alarms Server Client Trends Recipes Viewer.exe Reports Viewer Math Script Scheduler
  • 5. Library Execution Scope and Lifetime of Interface BGTask Viewer variables and Variables Procedures procedures (Server) (Local) Global Procedures Yes Yes Yes** Yes** Global Graphic Script Graphic Scripts Yes Yes Yes *Screen Script *Screen Controls Screen Script Screen Scripts Yes Yes Yes Screen Controls Screen Controls Yes Yes Screen Control itself (Command, ActiveX, .NET) Startup Script Startup Script Yes Yes Yes Script Groups Script Groups Yes Yes Script Group itself * Using the Graphics.<Variable_or_Procedure_name> syntax. ** Global Procedures is a repository (library) of user-defined sub-routines and functions, which can be called from any VBScript interface in the project. It is not an execution module (thread) by itself.
  • 6. Declaring variables (Dim) and constants (Const) Calling Procedures (Call) and defining parameters (ByRef, ByVal) Intellisense
  • 7. Built-in $Trace() function Output Window messages VBScript MsgBox function Error Handling with On Error Resume Next / On Error Goto 0
  • 8. If…Then statement If...Then...ElseIf statement executes a set of code when a selects one of many sets of lines to condition is true execute If...Then...Else statement selects one of two sets of lines to execute Select Case statement selects one of many sets of lines to execute
  • 9. For…Next statement Do...Loop statement runs code a specified number of times selects one of many sets of lines to execute For each...Next statement selects one of two sets of lines to execute
  • 10. Date/Time functions (DateAdd, DateDiff, etc) Conversion functions (Asc, Chr, etc) Format Functions (FormatDateTime, etc) Math Functions (Rnd, Sqr, etc) Array Functions (Ubound, etc) String Functions (LCase, Ucase, etc) Other Functions (MsgBox, InputBox, CreateObject, etc)
  • 12. InduSoft Web Studio main Database/ERP built-in functions: $DBExecute() $DBCursorOpenSQL() $DBCursorClose() $DBCursorRowCount $DBCursorGetValue() $DBCursorNext()
  • 13. ActiveX interface (properties, methods, and events) COM Server interface (CreateObject statement)
  • 14. InduSoft Web Studio Technical Reference Manual (Help) W3SCHOOLS Web Site (http://w3schools.com/vbscript/default.asp) Microsoft MSDN (http://msdn.microsoft.com/en-us/library/t0aew7h6)
  • 17. Email (US) info@indusoft.com (Brazil) info@indusoft.com.br (Germany) info@indusoft-germany.de USA Support support@indusoft.com Web site (English) www.indusoft.com (Portuguese) www.indusoft.com.br (German) www.indusoft-germany.de Brazil Phone (512) 349-0334 (US) +55-11-3293-9139 (Brazil) +49 (0) 6227-732510 (Germany) Germany Toll-Free 877-INDUSOFT (877-463-8763) Fax (512) 349-0375