Jump to content
Sign in to follow this  

Variable subscript badly formatted?

Recommended Posts


Please help I'm getting error :(


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


Share this post

Link to post
Share on other sites

Post a runnable script...


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

Edited by kylomas
  • Like 1

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

Share this post

Link to post
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.

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.