Det7
05-31-2005, 03:41 AM
How can i achieve a comparison like this? 1.1 == 1.1.1 or 1.1.2 or 1.1.3
Hey guys need help on this?
Say I have an array..
itemNo = {1, 1.1, 1.2, 1.2.1, 1.2.2, 1.2.3, 2}
I want to get certain group of this item numbers, say..
x = window.prompt ("Enter parent item number");
// I entered 1.2
the script should then display values
1.2.1
1.2.2 and
1.2.3
take note, the elements inside the array is dynamic and
is not ordered in any way. I mean, there is a possibility that
the itemNumbers inside the array are to be arranged as..
itemNo = {2, 1.2.2, 1.2.3, 1.2.1, 1.1, 1.2, 1}
still the same requirement. help!
Hey guys need help on this?
Say I have an array..
itemNo = {1, 1.1, 1.2, 1.2.1, 1.2.2, 1.2.3, 2}
I want to get certain group of this item numbers, say..
x = window.prompt ("Enter parent item number");
// I entered 1.2
the script should then display values
1.2.1
1.2.2 and
1.2.3
take note, the elements inside the array is dynamic and
is not ordered in any way. I mean, there is a possibility that
the itemNumbers inside the array are to be arranged as..
itemNo = {2, 1.2.2, 1.2.3, 1.2.1, 1.1, 1.2, 1}
still the same requirement. help!