Because += is a mistake and hopefully it's irreparably broken. Does using just s:=s+';'; work?
-- Alexander Grotewohl https://dcclost.com ________________________________ From: fpc-pascal <fpc-pascal-boun...@lists.freepascal.org> on behalf of Hairy Pixels via fpc-pascal <fpc-pascal@lists.freepascal.org> Sent: Saturday, October 30, 2021 11:09:49 PM To: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org> Cc: Hairy Pixels <generic...@gmail.com> Subject: [fpc-pascal] String error on Windows Why isn't this syntax valid on Windows? Very confused. ============================ {$mode objfpc} program WindowsTest; var s: String; begin s += ';'; // Syntax error, ";" expected but "const char" found end.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal