Quote Originally Posted by WizBang
However, a specific format would require dealing with each member of the UDT seporately. Is that what you are trying to achive?
Yes, this is what I'm after. I also want to use the same function for writing to a file, so once I can detect the dat type, I will add the special formatting for each dat type as a string, then pass the string to a function for writing to the file.