hi
how would I create a list of arrays in field of a type?
I have this so far: BUT it doesnt print anything
I also want the array to be an unspecified length e.g. array$[]
also, does it matter if the arrays all have the same name?
thanks
EDIT
nevermind I got it
how would I create a list of arrays in field of a type?
I have this so far: BUT it doesnt print anything
Global array_list:TList=New TList Local word_array$[] word_array = "trev is a wizard".split(" ") array_list.addlast(word_array) word_array = "trev is a barbarian".split(" ") array_list.addlast(word_array) word_array = "trev is a conjurer".split(" ") array_list.addlast(word_array) For Local w[] = EachIn array_list For x = 1 To w.length Print w[x] Next Next
I also want the array to be an unspecified length e.g. array$[]
also, does it matter if the arrays all have the same name?
thanks
EDIT
nevermind I got it
Global array_list:TList=New TList Local word_array$[] word_array = "trev is a wizard".split(" ") Print "word array length"+word_array.length array_list.addlast(word_array) word_array = "trev is a barbarian".split(" ") Print "word array length"+word_array.length array_list.addlast(word_array) word_array = "trev is a conjurer".split(" ") Print "word array length"+word_array.length array_list.addlast(word_array) Print array_list.count()+" array list length" For Local w$[] = EachIn array_list Print "found an array" For x = 1 To w.length-1 Print w[x] Next Next