Tag «Arrays»

Dynamic Arrays – VBScript

There are two types of arrays: Static arrays Dynamic arrays Static array has to be declared with the number of elements that the array can hold (i.e. arr(5)).  If we don’t know the number of elements to be stored in the array, then the dynamic array can be used. Syntax: Dim arr() ReDim keyword should …

Arrays – in VBScript

An Array is a data structure which can hold multiple variables of the same type.  So far whatever the examples we have seen in the previous posts we have used variables for each value. ans=a*b Here, variable a and the variable b are multiplied and the result is stored back in the variable ans. Let …