Oct 23, 2002 #1 jackie1948 Programmer Joined Jan 25, 2002 Messages 78 Location US how do i get my array to sort and display in the listbox by the year field in desending order?
Oct 23, 2002 #2 Mike Gagnon Programmer Joined Apr 6, 2002 Messages 8,067 Location CA how do i get my array to sort and display in the listbox by the year field in desending order? Code: DIMENSION gaArray(3,2) gaArray(1) = 'G' gaArray(2) = 'A' gaArray(3) = 'C' gaArray(4) = 'Z' gaArray(5) = 'B' gaArray(6) = 'N' ASORT(gaArray,1) Will sort element by the first element. Mike Gagnon If you want to get the best response to a question, please check out FAQ184-2483 first Upvote 0 Downvote
how do i get my array to sort and display in the listbox by the year field in desending order? Code: DIMENSION gaArray(3,2) gaArray(1) = 'G' gaArray(2) = 'A' gaArray(3) = 'C' gaArray(4) = 'Z' gaArray(5) = 'B' gaArray(6) = 'N' ASORT(gaArray,1) Will sort element by the first element. Mike Gagnon If you want to get the best response to a question, please check out FAQ184-2483 first
Oct 23, 2002 #3 ramani Programmer Joined Mar 15, 2001 Messages 4,336 Location AE HI ASORT(gaArray,1,-1,1) should do the trick for you. _1 indicates all elements the last 1 indicates descending. ramani (Subramanian.G),FoxAcc, ramani_g@yahoo.com Upvote 0 Downvote
HI ASORT(gaArray,1,-1,1) should do the trick for you. _1 indicates all elements the last 1 indicates descending. ramani (Subramanian.G),FoxAcc, ramani_g@yahoo.com