Many thanks for the explanation.
explanation was OK, code was wrong, as you probably noticed, while
moving the tests I needed to switch the sense of the comparison, change
gt to lt or you'll get the min not the max.
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________