Sorry. This:

uiText := FormAddString('' + Ret + #13#10);

Will refuse to compile, due to unknown # character.

I know on Java you can use line.separator. I will try somehow to access this java feature.