<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr">Am Sa., 3. Nov. 2018, 23:56 hat Tomas Hajny <<a href="mailto:XHajT03@hajny.biz">XHajT03@hajny.biz</a>> geschrieben:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, November 3, 2018 23:04, James wrote:<br>
> Thanks for the suggestion...<br>
><br>
> I put my code in the OnCreate event as you suggested, but when I try to<br>
> compile it, I get wrong number of parameters specified for call to<br>
> Assign... my code worked before, and I have no idea what other parameters<br>
> it could want or why it would be any different than my console<br>
> application.<br>
><br>
> I'm doing:<br>
> Var<br>
> TapFileName : AnsiString;<br>
> TapFile : Text;<br>
><br>
> Assign(TapFile,TapFileName);<br>
<br>
I guess that System.Assign(TapFile,TapFileName); should work for you.<br>
<br>
<br>
> Any ideas why this works in FPC but not in Lazarus?<br>
<br>
Probably a conflict with another Assign with a different functionality and<br>
different syntax. I don't use Lazarus myself, but I'm sure it provides a<br>
way to show where Assign is declared and how.<br></blockquote></div><div dir="auto"><br></div><div dir="auto">That's why Delphi back with Delphi 1 already I think introduced AssignFile as an overload of Assign. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div>