Insert Line feed and Space character in PeopleCode

Function InsertSpaceChars(&count) Returns string
&spaceString = "";
For &i = 1 To &count
&spaceString = &spaceString | Char(32);
End-For;
Return &spaceString;
End-Function;

Function InsertLineFeedChars(&count) Returns string
&NextLineString = "";
For &i = 1 To &count
&NextLineString = &NextLineString | Char(10);
End-For;
Return &NextLineString;
End-Function;

2 comments: