Path: utzoo!attcan!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uflorida!haven!adm!xadmx!milne@ics.uci.edu From: milne@ics.uci.edu (Alastair Milne) Newsgroups: comp.lang.pascal Subject: Re: TP4.0 Aux Prob. Message-ID: <17499@adm.BRL.MIL> Date: 13 Nov 88 07:40:21 GMT Sender: news@adm.BRL.MIL Lines: 30 >I just typed in the code on pages 365 - 367 of the Turbo Pascal 4.0 manual, > ... Could you please recheck your page reference? pp. 365-367 in my manual discusses the inline statement; the only code is a small routine, FillWord, at the bottom of 366. Assuming you meant the AuxInOut unit that is given several pages further on (p. 373): no, it doesn't compile as given. The reason is hinted in the paragraph after the end. When they use TextRec, they use 2 fields that they call Port and Params. However, just as the paragraph says, these aren't in Turbo's TextRec definition (it's on p. 298 in my manual). The paragraph claims that AuxInOut defines them, replacing the UserData field with them; but it doesn't! AuxInOut contains no re-definition at all of TextRec. To get my version to compile, I made Port and Param private globals. This will work if AuxInOut is used only with one file. Or you can try making your own local redefinition of TextRec as they describe. I haven't tried using it since a) I am using the serial port to write this message and b) I don't know how the Params argument should be used. I do feel that this is rather careless: the golden rule is always to try your examples before you publish them. They could hardly have tried this one! Alastair Milne