+ / Length
Try it yourself →String concatenation and length.
Syntax
s1 + s2 · Length(s)
Description
Strings are concatenated with +; Length(s) gives the number of characters.
Example
program H;
{$MODE DELPHI}
var s: String;
begin
s := 'Hex' + 'Library';
writeln(s, ' ', Length(s));
end.Expected output
HexLibrary 10
When to use?
Creating strings.