Ankit Garg wrote: Is this a question?? You didn't write anything apart from the code and the output...
Ankit, I looked at the links that you provided, but the answers to my question weren't easy for me to understood. I thought that I could provide a better answer to my own question, and I tried to do so with this example code and output. Maybe this code snippet will help someone else.
Harry