Protecting the ref with a lambda was a nice idea; I wish I had thought of it. Refnum problem solved :-) Thanks, Norman