the_lord_mephy 0 Posted November 30, 2004 (edited) Alright I really don't understand how to declare an array in which the amount of elements it contains is declared by a variable. I tried doing Dim $arary[$i] and that didn't work, Please don't yell at me I read the helpfile and it didn't do anything lol Edited November 30, 2004 by the_lord_mephy My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Share this post Link to post Share on other sites
Jos 2,170 Posted November 30, 2004 (edited) Alright I really don't understand how to declare an array in which the amount of elements it contains is declared by a variable.<{POST_SNAPBACK}>something like:$i=3 Dim $Array[$i] $Array[0] = '1' $Array[1] = '2' $Array[2] = '3' Edited November 30, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
the_lord_mephy 0 Posted November 30, 2004 Ook I got it nevermind. My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Share this post Link to post Share on other sites
the_lord_mephy 0 Posted November 30, 2004 yeah I got it, It's because I forgot about the [0] so I was getting the error that it exceeded the elements. I had to do Dim $array[$i + 1] My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Share this post Link to post Share on other sites
Jos 2,170 Posted November 30, 2004 yeah I got it, It's because I forgot about the [0] so I was getting the error that it exceeded the elements. I had to doDim $array[$i + 1]<{POST_SNAPBACK}>Ahhh, you didn't tell us the whole story and you wanted to see if we could guess your error... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
the_lord_mephy 0 Posted December 2, 2004 Tehe, sorry My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Share this post Link to post Share on other sites