jasperdj 0 Posted August 1, 2011 (edited) I've been playing around quite a bit, and i can't get this solved. global $songname[100]; $songname[$num]=$song7; msgbox(0,"",$songname[$num] & $num) $num=$num+1$song7 will be a string that will be different every 'loop', and i want to save all song titels in an array. It seemsthat my code does not work, in fact it gives the error:Array variable has incorrect number of subscripts....Some help with this would be wonderfull Edited August 1, 2011 by jasperdj Share this post Link to post Share on other sites
hannes08 39 Posted August 1, 2011 (edited) Hi jasperdj, the errormessage you get is typically for accessing an index in the array that does not exist. E.g. dim $songname[100] defines you an array from $songname[0] to $songname[99], if you try to access $songname[100] it will crash and give you the "Array variable has incorrect number of subscripts" message. Edited August 1, 2011 by Hannes123 Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler] Share this post Link to post Share on other sites
jasperdj 0 Posted August 1, 2011 Ahhh yes how obvious, $num was way above 100. Thanks! Share this post Link to post Share on other sites