Tutorial by Examples

Creating variables in VBScript can be done by using the Dim, Public, or Private statement. It is best practice to put at the top of the script "Option Explicit" which forces you to explicitly define a variable. You can declare one variable like this: Option Explicit Dim firstName O...
VBScript is a weakly typed language; variables are all of type variant, though they usually have an implied subtype denoting the data they hold. This means that your variable, no matter what you call it, can hold any value: Dim foo foo = "Hello, World!" foo = 123.45 foo = #01-Jan-2016...

Page 1 of 1