@valdir.marcos
Freepascal is not a scripting language.
Just curious. Where did I say the contrary?
C style macro's expand to native code.
I and all old programmers know that. Just curious. Where did I demonstrate that I don't know that?
But your suggestion is an option if speed is not important.
Yes, I was trying to suggest alternatives to @spuds.
First, the problem needs a solution, then you improve that to the fastest possible solution.