Hello s.dinah,

You're welcome. I haven't written any code for COM ports in about 15 years.

Thanks for posting this code. It is very a comprehensive and flexible approach to programming the ports. Brilliant piece of work by the original author.