macintosh_cookbook/examples/string.pas
2020-05-07 18:47:11 +09:00

20 lines
183 B
ObjectPascal

program ExampleString;
var
foo: String;
begin
ShowText;
foo := 'foo';
Writeln(foo);
foo[1] := 'b';
foo[2] := 'a';
foo[3] := 'r';
Writeln(foo); { outputs: bar }
end.