>There are a couple of problems with the code below. First you can't RETURN from a TRY/CATCH - that will cause a runtime error (in fact it should give you a compile time error).
Yes, I learned that earlier on today. :)
>You probably want a generic routine to handle the retrieving of node values because you have to basically check for NULL on all of them. Something like this:
Thanks, I have implemented that function which I can now call from several locations.