[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Array w/ more than 1 dimension
Hello all,
Is it possible to get an array w/ two or three dimensions?
I tried the following code and the resault is only the last pass/line
(e.g. 25,50,75,100,125)
<script language="JavaScript">
function MakeMatrix(){
for( var Cl = 1; Cl<=5; Cl++)
for( var Co = 1; Co<=5; Co++)
for( var Size = 1; Size<=5; Size++)
this[Cl, Co, Size] = Cl*Co*Size;
return this;
return this;
return this;
}
var data = new MakeMatrix()
</script>
Any ideas / suggestions ?
Ellie.
________________________________________________
CCITT - Can't Concieve Inteligent Thoughts Today
Ellie wysiwyg --- Elliep19@gdi.net
My Home page - http://pages.prodigy.com/wysiwyg/
________________________________________________
--------------------------------------------------------------------
This message came from the mailing list javascript. For help using the
mailing list software, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.