<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Because += is a mistake and hopefully it's irreparably broken.<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Does using just s:=s+';'; work?<span id="ms-outlook-android-cursor"></span></div>
<div><br>
</div>
<div id="ms-outlook-mobile-signature">--<br>
Alexander Grotewohl<br>
<a href="https://dcclost.com" target="_blank">https://dcclost.com</a></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> fpc-pascal <fpc-pascal-bounces@lists.freepascal.org> on behalf of Hairy Pixels via fpc-pascal <fpc-pascal@lists.freepascal.org><br>
<b>Sent:</b> Saturday, October 30, 2021 11:09:49 PM<br>
<b>To:</b> FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org><br>
<b>Cc:</b> Hairy Pixels <genericptr@gmail.com><br>
<b>Subject:</b> [fpc-pascal] String error on Windows</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Why isn't this syntax valid on Windows? Very confused.</div>
<div><br>
</div>
<div>============================</div>
<div><br>
</div>
{$mode objfpc}<br>
<br>
program WindowsTest;<br>
<br>
var<br>
s: String;<br>
begin<br>
s += ';'; // Syntax error, ";" expected but "const char" found<br>
end.<br>
</div>
</div>
</body>
</html>