Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
InduSoft VBScript Webinar
1.
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
4.
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
12. InduSoft Web Studio main Database/ERP built-in functions:
$DBExecute()
$DBCursorOpenSQL()
$DBCursorClose()
$DBCursorRowCount
$DBCursorGetValue()
$DBCursorNext()
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)
15.
16.
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