Does my example run Ok for you?...or is that where you are getting the error message?