DIAdem Help

VBScript Language Directory

  • Updated2024-09-12
  • 2 minute(s) read

VBScript Language Directory

The scripts that you create in DIAdem are based on Visual Basic Script (VBS). The following topics cover the programming language VBS, from explanations about Data Types, the use of Variables, Constants, Operators, and Procedures, to the Definition of Classes and Using Objects.

General

Visual Basic (VB) is an object-oriented programming language developed by Microsoft and is used for creating applications and components. Visual Basic Script (VBS) is a script language derived from VB, which contains a subset of the VB functionality. VBS is an interpreter language.

VBS contains Control Structures, that is, commands for conditional statements, looping statements, numeric calculations, and for processing text. VBS supports the definition and use of variables and objects. You use commands to create processes that can be reproduced at any time. You save the processes in a text file with the extension .vbs. This enables you to change and to adjust these processes later.

Functions in VBS

CategoryKeywords
Sequence controlDo While...Loop
Do...Loop Until
Exit
For...Next
For Each...Next
If...Then...Else
Select Case...Case...End Select
While...Wend
With
Array handlingArray
Dim, Private, Public, ReDim
IsArray
Erase
LBound, UBound
ExpressionsEval
Execute
RegExp
Date/time settingsDate, Time
DateAdd, DateDiff, DatePart
DateSerial, DateValue
Day, Month, MonthName
Weekday, WeekdayName, Year
Hour, Minute, Second
Now
Timer
TimeSerial, TimeValue
DeclarationsClass
Const
Dim, Private, Public, ReDim
Function, Sub
Property Get, Property Let, Property Set
Input/outputInputBox
MsgBox
Error handlingOn Error
Err
Formatting character stringsFormatCurrency
FormatDateTime
FormatNumber
FormatPercent
Comments' or Rem
Constant/LiteralEmpty
Nothing
Null
True, False
ConversionsAbs
Asc, AscB, AscW
Chr, ChrB, ChrW
CBool, CByte
CCur, CDate
CDbl, CInt
CLng, CSng, CStr
DateSerial, DateValue
Escape
Hex, Oct
Fix, Int
Sgn
TimeSerial, TimeValue
UnEscape
MathematicsAtn, Cos, Sin, Tan
Exp, Log, Sqr
Randomize, Rnd
ObjectsCreateObject
Dictionary
Err
FileSystemObject
GetObject
RegExp
Set
OperatorsAddition (+), Subtraction (-),
Multiplication (*) , Division (/)
Exponent (^), Modulo (mod)
Unary negation
Integer number division
Character string link
Equality (=), Inequality (<>)
Less than (<), Less than or equal to (<=)
Greater than (<), Greater than or equal to (<=)
Is
Not, And, Or
Xor
Eqv, Imp
OptionsOption Explicit
ProceduresCall
GetRef
Function, Sub
Property Get, Property Let, Property Set
RoundAbs
Fix, Int, Round
Sgn
Script panel IDScriptEngine
ScriptEngineBuildVersion
ScriptEngineMajorVersion
ScriptEngineMinorVersion
Variant valuesIsArray
IsDate
IsEmpty
IsNull
IsNumeric
IsObject
TypeName
VarType
OtherEval Function
Execute Statement
ExecuteGlobal Statement
RGB Function
Character stringsAsc, AscB, AscW
Chr, ChrB, ChrW
Filter, InStr, InStrB InStrRev
Join
Len, LenB
LCase, UCase
Left, LeftB
Mid, MidB
Right, RightB
Replace
Space
Split
StrComp
String
StrReverse
LTrim, RTrim, Trim
AssignmentsSet

Log in to get a better experience