:BangHead:Hi
I wonder if somebody can help me:sign0085:
I have a 2 dimensional array : Dim Type(Offset,Level) OGL(0) as double which is declared under my Global Sub.
Now because of different calculations, i.e Toe Points, Shouder Break Points, Surface, Shoulders, Kerbs, etc., the Offsets and levels are all mixed up, i.e they do not run from small offsets to large offsets.
i.e.
(-20,1234); (10,1211); (-10,1212); (5,1213); (18,1211.5); (-2,1213)...etc.
Now what I want to do is to sort the Offsets from small to large, but the levels must stay with the Offsets...i.e.
(-20,1234); (-10,1212); (-2;1213); (5,1213); (18,1211.5);...etc.:BangHead:
Can this be done or is there maybe a function in B4PPC that I do not know of. I know of the "Sort" function, but that is for a 1 dimensional array.:BangHead:
Thanks
Michael
I wonder if somebody can help me:sign0085:
I have a 2 dimensional array : Dim Type(Offset,Level) OGL(0) as double which is declared under my Global Sub.
Now because of different calculations, i.e Toe Points, Shouder Break Points, Surface, Shoulders, Kerbs, etc., the Offsets and levels are all mixed up, i.e they do not run from small offsets to large offsets.
i.e.
(-20,1234); (10,1211); (-10,1212); (5,1213); (18,1211.5); (-2,1213)...etc.
Now what I want to do is to sort the Offsets from small to large, but the levels must stay with the Offsets...i.e.
(-20,1234); (-10,1212); (-2;1213); (5,1213); (18,1211.5);...etc.:BangHead:
Can this be done or is there maybe a function in B4PPC that I do not know of. I know of the "Sort" function, but that is for a 1 dimensional array.:BangHead:
Thanks
Michael