Works perfectly.
Thank you.

Originally Posted by clivew
And, in your own best interest, take heed of my advice from earlier in this thread about scoping variables.
This is not just a Delphi thing. It is a basic rule of good coding that all variables should be declared with the minimum scope
required to get the job done.

If you intend to do any amount of serious programming I guarantee that breaking this rule
will eventually cost you hours and hours of frustrating debugging.


Ok. I will do it.