My code:
(I just pasted code from where I get error. I have GUI and other stuff ofcourse and its +200lines of code..)
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
How to make it stop after it reads 5 lines?
There is no loop or something I just push the button.
(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.