bartl
07-25-2003, 03:06 AM
hello all,
i have an array like this:
ArrTotal = new Array();
ArrDesc = new Array();
ArrTotal[1] = 10;
ArrDesc[1] = 'Item a';
ArrTotal[2] = 5;
ArrDesc[2] = 'Item b';
ArrTotal[3] = 12;
ArrDesc[3] = 'Item c';
ArrTotal[4] = 18;
ArrDesc[4] = 'Item d';
And i need to know the higest value, which is in this case '18' in the element 4 and I need to display the description of this element 4 (item d)
how can i do this, i tried already to sort this array but i can't get further then this
regards,
bart
i have an array like this:
ArrTotal = new Array();
ArrDesc = new Array();
ArrTotal[1] = 10;
ArrDesc[1] = 'Item a';
ArrTotal[2] = 5;
ArrDesc[2] = 'Item b';
ArrTotal[3] = 12;
ArrDesc[3] = 'Item c';
ArrTotal[4] = 18;
ArrDesc[4] = 'Item d';
And i need to know the higest value, which is in this case '18' in the element 4 and I need to display the description of this element 4 (item d)
how can i do this, i tried already to sort this array but i can't get further then this
regards,
bart