Jump to content

Recommended Posts

Posted

Please help I'm getting error :(

361c6950c62d4d0b8a72a63669c6a921.png

Global $sFilters = "*.psd;*.jpg;*.png;*.gif;*.ico;*.txt;*.mp3;*.rar;*.zip;*.docx;*.xlsx"
Global $aFilters = StringRegExp($sFilters, "\.(...?)", 3)
Global $aFiltersCounter[UBound($aFilters) + 1][4]
For $i = 0 to UBound($aFilters) - 1
    $aFiltersCounter[$i][2] = GUICtrlCreateLabel(StringUpper($aFilters[$i]), 24, 207 + $i * 25, 26, 17)
    $aFiltersCounter[$i][3] = GUICtrlCreateLabel("0", 62, 207 + $i * 25, 26, 17)
Next
For $i = 1 To $aResult[0]
        $iPos = _ArraySearch($aFilters, StringRight($aResult[$i], 3))
        $aFiltersCounter[$iPos][1] += 1 ;Line 92
        GUICtrlSetData($aFiltersCounter[$iPos][3], $aFiltersCounter[$iPos][1])
    Next

 

Posted (edited)

Post a runnable script...

Kylomas

Edit..display $afilters after your sre to build it.  I dont think you are getting what you think you are...

Edited by kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

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