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

dynamic arrays{help}

$
0
0
[ autoit ]      
#include <Array.au3> ;;automation to run functions from files $maxFun = 35 Global $v[1] For $l = 1 To $maxFun Step 1 _ArrayAdd ($v[$maxFun] = FileReadLine("C:\IanLogTest\functionLog.log", $l)) Next MsgBox("", "count", $v[$maxFun])


so that is my whole script... what i want it to do is have $maxFun be a text document and the maximum number of lines in the text doc is 35 at any given time.. and then add each line as an element to my array ($v[]).  i just dont know how to create a blank array without using 35 ["",""...] as "blank" elements... is there an easy way to do this with a FOR loop? i feel that there is..
or should i just write out 35 variables and then $var1 = fileReadLine...... over and over.?
Thanks

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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