Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get the length of an array

Status
Not open for further replies.

timgerr

IS-IT--Management
Jan 22, 2004
364
US
Hey all, I am a perl guy buy night but right now I have to create a bunch of SQL queries in VBScript. I have a collection of strings in an array and I want to count how many elements I have, here is an example in perl:
Code:
my @test = ('1','a','6','happy')
I would then use the scalar comment to see how many elements are in the array
Code:
print scalar(@test)
and the output would be 3. Is there a similar function that I can use in vbscript that will print out the number of elements that an array has?

Thanks,
-T

-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top