home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!haven.umd.edu!ni.umd.edu!zben-mac-ii.umd.edu!user
- From: zben@ni.umd.edu (Charles B. Cranston)
- Subject: Re: updating window text / getting text lines from buffer
- Message-ID: <zben-280892194659@zben-mac-ii.umd.edu>
- Followup-To: comp.sys.mac.programmer
- Sender: usenet@ni.umd.edu (USENET News System)
- Nntp-Posting-Host: zben-mac-ii.umd.edu
- Organization: UM Home for the Terminally Analytical
- References: <86967@netnews.upenn.edu> <1992Aug25.232449.12720@kronos.arc.nasa.gov> <zben-280892150237@zben-mac-ii.umd.edu>
- Date: Fri, 28 Aug 1992 23:48:55 GMT
- Lines: 21
-
- In article <zben-280892150237@zben-mac-ii.umd.edu>,
- zben@ni.umd.edu (Charles B. Cranston) wrote:
-
- > var
- > junk: Integer;
- > Buff: Packed Array[0..255] of SignedByte;
- > PBRec: ParamBlockRec;
- > begin
- > PBRec.ioRefNum := theFile;
- > PBRec.ioBuffer := @Buff;
- > PBRec.ioPosMode := $0D80; <<----80 is read till EOL bit, 0D is CR!
- > PBRec.ioPosOffset := 0;
- > PBRec.ioReqCount := 256;
- > junk := PBReadASync(@PBRec);
- ^ urp!
- > UseText(PBRec.ioActCount,@Buff);
-
- Yeah, I tried to get funky and replace PBRead(@PBRec,False) on
- the fly and got it wrong. It should be PBReadSync not ASync.
-
- zben@ni.umd.edu -KA3ZDF
-