Hellos,
I'm trying to figure out how access a range of array elements. I'm familiar with perl and in perl I would use a statement like the one below.
@names=("Muriel","Gavin","Susanne","Sarah","Anna","Paul","Trish","Simon"
print "The first two elements are @names[0,1]\n";
print "The first three elements are @names[0..2]\n";
@names[0,1] lets me access the values of the first two array elements as a simple range statement. Does vbs have anything similar and if not how would you go about accessing the values in the array? I'm implementing this with in a for each loop also.
Thanks in advance.
I'm trying to figure out how access a range of array elements. I'm familiar with perl and in perl I would use a statement like the one below.
@names=("Muriel","Gavin","Susanne","Sarah","Anna","Paul","Trish","Simon"
print "The first two elements are @names[0,1]\n";
print "The first three elements are @names[0..2]\n";
@names[0,1] lets me access the values of the first two array elements as a simple range statement. Does vbs have anything similar and if not how would you go about accessing the values in the array? I'm implementing this with in a for each loop also.
Thanks in advance.