trancor
06-28-2007, 05:23 AM
I've been looking around and looking around and I don't know if mel has the power to do this or not.
I'm trying to simply replicate a standard assigning element's values in an array, eg -
string $varList[2];
string $varList[0]={"blarg"};
string $varList[1]={"garlb"};
But instead of adding to the array it simply declares the array again so the above script would simply be -
$varList size = 1 and $varList print = garlb
For further knowledge to anyone reading this, I'm trying to proccess out math before entering a for loop, finding magnitudes of verticies and I would like to simply call them up in the for loop I have set. I know this can be done in c++, I know it can be done in java, hell this can even be done in php, but does mel have a way of adding elemenets to an array?
I'm trying to simply replicate a standard assigning element's values in an array, eg -
string $varList[2];
string $varList[0]={"blarg"};
string $varList[1]={"garlb"};
But instead of adding to the array it simply declares the array again so the above script would simply be -
$varList size = 1 and $varList print = garlb
For further knowledge to anyone reading this, I'm trying to proccess out math before entering a for loop, finding magnitudes of verticies and I would like to simply call them up in the for loop I have set. I know this can be done in c++, I know it can be done in java, hell this can even be done in php, but does mel have a way of adding elemenets to an array?
