Jump to content

Recommended Posts

Posted

If you solved it that's good. the function I wrote should do the trick too. It will return an array of unique items [1D], unique rows [2D], unique grids [3D] etc... You can also get unique columns [etc...] by changing the default dimension.

Posted
On ‎25‎-‎02‎-‎2016 at 1:33 PM, iamtheky said:

So pull everything, but then only check against the portion of the string you need uniqueness on ?

like keeping this 1D and in the loop checking against the last split

#include<File.au3>
$aList = _FileListToArray(@ScriptDir , '*' , 2, True)

_ArrayDisplay($aList)

for $i = ubound($aList) - 1 to 1 step -1
    ;item to compare
    msgbox(0, '' , stringreverse(stringsplit(stringreverse($aList[$i]), "\" , 2)[0]))
next

 

Thank you. This was a quick solution.

Yours sincerely

Kenneth.

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
×
×
  • Create New...