Jump to content

Recommended Posts

Posted

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.....

Posted

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....

Posted

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)
Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...