This content has been marked as final. Show 3 replies
1. your problem is the way you're defining dp[k]: it's a string. it may look like two juxtaposed array elements to you, but that's not what it looks like to flash.
2. if you want to define your arrays on the current timeline use:
many thanks Kglad, i have the dynamic name working now,
.. but im still a little sketchy about getting the answer from the multi dimensional array problem. ( the dp[k] bit of original post )
is there a way to build the multi dimensional array so that i can call the variable i want easily ?..
i want to set it up so that i have something like this:
variable 1 - has 2 answers, answer 1 and answer 2
variable 2 - has answer 1 and answer 2 and so on...
(with all the answer being numbers only)
and im thinking in the multi array it will be laid out somethign like this
doublearray=new Array( [variable1answer1][variable1anser2] , [variable2answer1][variable2answer2])
but i want to call the answers seperatly after i have decided what variable i want..
eg myarray[variable1][answer2]= to give me just the resulting answer i want
many thanks again for the help so far
after declaring dp is an array: