Sign in to follow this  
Followers 0
youtuber

Variable subscript badly formatted?

4 posts in this topic

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

 

Share this post


Link to post
Share on other sites



#2 ·  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
1 person likes this

Forum Rules         Procedure for posting code

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  
Followers 0