Programming Languages
VBScript
Subjective
May 10, 2013
How you define Array Variable in VBScript?
Detailed Explanation
When we created any Array variable than in this a variable can store more than one value.We declare an array variable using parenthesis().
Example:
Here I declare a variable names.
dim names(3)
In this we declare an array variable names that can store only four values.We can assign value to each element of variable llike that,
names(0)="Abhinav"
names(1)="Pankaj"
names(2)="Shekhar"
names(3)="Ravi"
Now, we can perticular name entry from name variable to any other variable like that,
friend=names(2)
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts