Sign in to follow this  
Followers 0
Blacktongue

ItemCount

5 posts in this topic

I am trying to migrate from winbatch to AutoIt.

Is there a function in AutoIt that would return an item count on a list?

ItemCount (list, delimiter) is what winbatch has.

Do I need to build an array?...never done that.....

Share this post


Link to post
Share on other sites



The list is generated just by copying a list to the clipboard....and assging a variable to it. Then I need to count the number of items in the list. I could count the number of delimiters.......but I dont know how to do that either....

Share this post


Link to post
Share on other sites

The list is generated just by copying a list to the clipboard....and assging a variable to it. Then I need to count the number of items in the list. I could count the number of delimiters.......but I dont know how to do that either....

StringSplit($list,@LF)

Share this post


Link to post
Share on other sites

Thank you much... this was in help but I couldnt find it til you pointed the way....

"StringSplit ( "string", "delimiters" [, flag ] )

Returns an array, the first element ($array[0]) contains the number of strings returned, the remaining elements ($array[1], $array[2], etc.) contain the delimited strings.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0