youtuber Posted September 26, 2016 Share Posted September 26, 2016 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) 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 More sharing options...
kylomas Posted September 26, 2016 Share Posted September 26, 2016 (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 September 26, 2016 by kylomas youtuber 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 Link to comment Share on other sites More sharing options...
youtuber Posted September 26, 2016 Author Share Posted September 26, 2016 @kylomas Thanks Link to comment Share on other sites More sharing options...
jdelaney Posted September 27, 2016 Share Posted September 27, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now