Ken Godee wrote: [detailed version of the question in the subject line] This question is asked often enough that it maybe should become a FAQ, but in any case it was asked a few weeks ago and I posted sample code with the idiomatic approach, as I recall. A Google Groups search with your keywords and my name should find it pretty quick. -Peter