Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Array variable has incorrect number of subscripts or subscript dimension range exceeded

$
0
0
Okay so im having issues whenever i try and scan a large amount of text using the "unknown function" checker that i had asked about earlier.

Whenever i try and check a large amount of text i get this error


C:\Users\Autumn\Desktop\Mega-Tool\Script.au3 (641) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
If StringRegExp(FileRead("Function.txt"), $ga_Funcs[$i]) Then _ArrayDelete($ga_Funcs, $i)
If StringRegExp(FileRead("Function.txt"), ^ ERROR

this is the code that the error is coming from. Im guesing its because of the "subscript dimension range exceeded"

[ autoit ]      
$ga_Funcs = StringRegExp(_GUICtrlRichEdit_GetText( $edit ), "(?is)(?:::|thread\s+)(\w+)", 3) For $i = 0 UBound($ga_Funcs)-1 to 0 step -1 If StringRegExp(_GUICtrlRichEdit_GetText( $edit ), '(?is)\v\s*' & $ga_Funcs[$i] & '\([^\)]*\)\s') Then _ArrayDelete($ga_Funcs, $i) If StringRegExp(FileRead("Function.txt"), $ga_Funcs[$i]) Then _ArrayDelete($ga_Funcs, $i) Next ClipPut(_ArrayToString($ga_Funcs, @CRLF))

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>