just define a plainold variable for the result first.
var Ans: TBitMap;
As yo've noticed the "result" keyword is problematic.
The at the very end:
Result := Ans;
Make up a real string first:
var
S: String; { huge string I hope }
begin
S := '';
for i := 1 to LengthOfArrayX do
S := S + X[i];
Form1.memo.Text := S; // fast !
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.