It works- very clever - actually cleverer and more to the point than the MSDN example!