Helghast,

I had a similar question, but had difficulty getting your code to work, and I wondered if you meant "return(tempStruct)" instead of "return(teststruct)"?