[fpc-pascal] Windows programming tutorials for FPC
pascaldragon at googlemail.com
Sun Nov 4 09:43:01 CET 2018
Am Sa., 3. Nov. 2018, 23:56 hat Tomas Hajny <XHajT03 at hajny.biz> geschrieben:
> On Sat, November 3, 2018 23:04, James wrote:
> > Thanks for the suggestion...
> > I put my code in the OnCreate event as you suggested, but when I try to
> > compile it, I get wrong number of parameters specified for call to
> > Assign... my code worked before, and I have no idea what other parameters
> > it could want or why it would be any different than my console
> > application.
> > I'm doing:
> > Var
> > TapFileName : AnsiString;
> > TapFile : Text;
> > Assign(TapFile,TapFileName);
> I guess that System.Assign(TapFile,TapFileName); should work for you.
> > Any ideas why this works in FPC but not in Lazarus?
> Probably a conflict with another Assign with a different functionality and
> different syntax. I don't use Lazarus myself, but I'm sure it provides a
> way to show where Assign is declared and how.
That's why Delphi back with Delphi 1 already I think introduced AssignFile
as an overload of Assign.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal