Janilabo

Janilabo | TSAConcat() [SCAR Divi]

Apr 28th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.51 KB | None | 0 0
  1. {==============================================================================]  
  2.   Explanation: Returns string of all TSA items binded together.                
  3. [==============================================================================}
  4. function TSAConcat(TSA: TStrArray): string;
  5. var
  6.   h, i: Integer;
  7. begin
  8.   Result := '';
  9.   h := High(TSA);
  10.   for i := 0 to h do
  11.     Result := (Result + string(TSA[i]));
  12. end;
  13.  
  14. begin
  15.   ClearDebug;
  16.   WriteLn(TSAConcat(['This', ' ', 'is', ' ', 'a', ' ', 'test!']));
  17. end.
Advertisement
Add Comment
Please, Sign In to add comment