home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14702 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.2 KB  |  35 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!haven.umd.edu!ni.umd.edu!zben-mac-ii.umd.edu!user
  3. From: zben@ni.umd.edu (Charles B. Cranston)
  4. Subject: Re: updating window text / getting text lines from buffer
  5. Message-ID: <zben-280892194659@zben-mac-ii.umd.edu>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: usenet@ni.umd.edu (USENET News System)
  8. Nntp-Posting-Host: zben-mac-ii.umd.edu
  9. Organization: UM Home for the Terminally Analytical
  10. References: <86967@netnews.upenn.edu> <1992Aug25.232449.12720@kronos.arc.nasa.gov> <zben-280892150237@zben-mac-ii.umd.edu>
  11. Date: Fri, 28 Aug 1992 23:48:55 GMT
  12. Lines: 21
  13.  
  14. In article <zben-280892150237@zben-mac-ii.umd.edu>,
  15. zben@ni.umd.edu (Charles B. Cranston) wrote:
  16.  
  17. > var
  18. >     junk:    Integer;
  19. >     Buff:    Packed Array[0..255] of SignedByte;
  20. >     PBRec:    ParamBlockRec;
  21. > begin        
  22. >     PBRec.ioRefNum := theFile;
  23. >     PBRec.ioBuffer := @Buff;
  24. >     PBRec.ioPosMode := $0D80;  <<----80 is read till EOL bit, 0D is CR!
  25. >     PBRec.ioPosOffset := 0;
  26. >     PBRec.ioReqCount := 256;
  27. >     junk := PBReadASync(@PBRec);
  28.                  ^ urp!
  29. >     UseText(PBRec.ioActCount,@Buff);
  30.  
  31. Yeah, I tried to get funky and replace PBRead(@PBRec,False) on
  32. the fly and got it wrong.  It should be PBReadSync not ASync.
  33.  
  34. zben@ni.umd.edu     -KA3ZDF
  35.