IT. Expert System.




Variables are used for storing values, like text strings, numbers or arrays.

Variables in VBScript are declared as follows:

variable_name = value

Naming Rules

The following rules apply when naming variables in VBScript:

Rule 1: A variable name must begin with an alphabetic character

Rule 2: A variable name cannot contain a period ( . )

Rule 3: A variable name cannot be longer than 255 characters

Rule 4: A variable name must be unique in the scope in which it is declared

Creating Variables

Creating variables in VBScript is often referred to as "declaring" variables. VBScript variables are declared using the Dim, Public, or Private keywords:

Dim myVariable

Once a variable has been declared, it can be assigned a value:

myVariable = 10

In addition, variables can be declared and assigned a value at the same time:

Dim myVariable = 10

Note: Variables declared outside any function, and variables first used within functions without being declared using Dim, have a "global" scope.

Array Variables

An array variable is used to store multiple values in a single variable.

Dim names(10)

The number shown in the parentheses is 10. This indicates that the array contains 3 elements and is a fixed-size. Data can be assined to each of the elements of the array like this:

names(0) = "Jack"
names(1) = "Elizabeth"
names(2) = "Will"

Arrays can have more than one dimension. Multiple dimension arrays are declared by separating the numbers in the parentheses with commas.

This example creates a two-dimensional array consisting of 4 rows and 12 columns:

Dim names(3,11)

Assigning data to a multi-dimensional array is similar to the creation, separate the number with commas:

names(0,0) = "Jack"
names(0,1) = "Elizabeth"
names(0,2) = "Will"
names(1,0) = "Dauntless"
names(1,1) = "Interceptor"
names(1,2) = "Black Pearl"


Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)





Java Script








Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 64 / 159432275. Delta: 0.02813 с