Thank you Rico - I was actually able to set it to selectednode.text = variable - I had to put a little string in the call above the function to retain a value.