Graeme Geldenhuys wrote: >I hope others find this useful. :) > > http://bugs.freepascal.org/view.php?id=12178 Thanks Graeme for this useful contribution. Elegantly coded and works flawlessly. Simple is good. Yours Howard