1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 <2004> 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 <2004> 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Index of highest value |
From: | "Lawrence T. Hoff" <[email protected]> |
To: | Andrew Johnson <[email protected]> |
Cc: | [email protected] |
Date: | Mon, 20 Dec 2004 12:20:53 -0500 |
How about creating your own modified version of the SEL record with slight modification to the code: In the calculation for SELECT_HIGH (and probably for SELECT_LOW as well for symmetry) have it set psel->seln=i as well as recording the highest value. Then you can read the SELN field to find the index you want.
We probably ought to make this change in the Base version of the selRecord as it seems like a common kind of issue, but I don't know how many existing databases it might break so I'd welcome any feedback positive or negative on the suggestion.