Length of Array

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
pantik
Junior Coder
Posts: 45
Joined: Sun Dec 13, 2009 5:52 pm

Length of Array

Post by pantik » Wed Mar 31, 2010 1:49 am

Any command to get lenght of a array (not string)?

Thanks.

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Mar 31, 2010 6:48 am

All functions that create an array also return the number of elements produced. There is not currently a way to count user generated arrays, though usually if you created it you'd know how big it was (you'd presumably have a counter variable).

However, version 12 will introduce a function called ArrayCount.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts