Thank you ASerge
Even a bonus. I was not aware of the "out" parameter. Great! It for sure makes it more descriptive.
But then again. I do prefer the Function, if that provides the same speed.
I just thought that doing it as a function might make two variables.
Ie... first the function fills up the "Result"-variable of the chosen type.
Then the "Result"-variable is copied into MyResult.
My idea was to use a pointer, so that the function or procedure skips a temporary variable, and writes directly to the target variable.
As I understand you, this might be exactly what the compiler does anyway?