Created
May 18, 2017 06:30
-
-
Save lucmarcio/6351ed9af8b1133e18cef3e6906ac854 to your computer and use it in GitHub Desktop.
ConvertArrayToString
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function StrArray(Const AnArray: array Of String): String; | |
var | |
Index: integer; | |
begin | |
Result := '['; | |
Index := Low(AnArray); | |
While Index < High(AnArray) Do | |
Begin | |
Result := Result + (AnArray[Index]) + ','; | |
Inc(Index); | |
End; | |
Result := Result + (AnArray[High(AnArray)]); | |
Result := Result + ']'; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment