In case the three numbers you want to find the max of comes from moving window going through a time series for instance, you may be able to speed things up by building some history into your algorithm. At least that helped me, when I had to find the median value in a window looking at an endless stream of data. _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

