Thank you David for your prompt response. I completely understand what you're getting at regarding the posting of code as well. I think you may have solved my problem, I'll give it a go later today. I appreciate it! Thanks, Andrew Davis NASA - KSC -- Posted via http://www.ruby-forum.com/.