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

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

$
0
0
My code:
(I just pasted code from where I get error. I have GUI and other stuff ofcourse and its +200lines of code..)

[ autoit ]         
Func pagr() $i = $i + 1 showchromosom($i) Endfunc Func showchromosom($line) $oForm1 = _IEFormGetCollection($oIE, 0) $x = _IEFormElementGetObjByName($oForm1, "x") $y = _IEFormElementGetObjByName($oForm1, "y") $linne = FileReadLine($chromstxt,$line) $setup = StringSplit($linne, "|") _IEFormElementsetValue($x,$setup[1]) _IEFormElementsetValue($y,$setup[2]) EndFunc

In txt file I have 5lines or more. As you see line contains number|number

After showing these 5lines it tries to show 6line and error popups

Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
_IEFormElementsetValue($y,$setup[2])
_IEFormElementsetValue($y,^ ERROR


How to make it stop after it reads 5 lines?
There is no loop or something I just push the button.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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