InterviewSolution
Saved Bookmarks
| 1. |
How to declare an array in VBScript? |
|
Answer» rrays are declared the same way a variable has been declared except that the declaration of an array variable uses parenthesis. In the below example, the size of the array is mentioned in the brackets. Example − 'Method 1 : Using DimDim arr1() 'Without Size'Method 2 : Mentioning the SizeDim arr2(5) 'Declared with size of 5'Method 3 : using 'Array' ParameterDim arr3arr3 = Array("apple","Orange","Grapes")
|
|