Blacktongue Posted January 8, 2007 Share Posted January 8, 2007 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..... Link to comment Share on other sites More sharing options...
xcal Posted January 8, 2007 Share Posted January 8, 2007 In an autoit created list? _GUICtrlListCount(). Some other list... dunno. How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Blacktongue Posted January 8, 2007 Author Share Posted January 8, 2007 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.... Link to comment Share on other sites More sharing options...
jpm Posted January 8, 2007 Share Posted January 8, 2007 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) Link to comment Share on other sites More sharing options...
Blacktongue Posted January 9, 2007 Author Share Posted January 9, 2007 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now