Add carriage return, etc to string in Control Builder M
In Control Builder M, how do you add a carriage return (decimal 13, ^M), line feed (decimal 10, ^J) etc. to a string?
For example, a variable mystring has initial value of 'abc', but need it to have an initial value of 'abc' plus a carriage return at the end, how would you do this?
You could try this:
ASCIIStructToString( DIntStruct := AsciiGetal,
NoOfCharacters := 1,
NoOfCharsPerDInt := 1,
String => CarriageReturn,
Status => Statusout );
DestinationString := SourceString + CarriageReturn;
where AsciiGetal = 13 and sourcestring = 'SomeText'
Could not really see if it worked as the carriage return is hidden but didn't gave an error.