Jump to content

Variable subscript badly formatted?


youtuber
 Share

Recommended Posts

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Are you good on this?  You have to validate your return on the arraysearch...it can be -1 when not found, which is out of the bounds of an array...also returns @error.

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
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
 Share

  • Recently Browsing   0 members

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