home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ukma!usenet.ins.cwru.edu!neoucom.edu!aldhfn!saxon!fletcher
- From: fletcher@saxon.UUCP (Edward F Eaglehouse)
- Subject: Re: Clipper 5.01 warning.
- Newsgroups: comp.databases
- References: <1992Nov3.212404.2892@pegasus.com>
- X-Newsreader: TIN [version 1.1 PL6]
- Message-ID: <fletcher.0269@saxon.UUCP>
- Date: 7 Nov 92 21:48:43 EST
- Organization: Auldhaefen Associates
- Lines: 14
-
- I suspect two problems here:
-
- The first, if you are are not using SET EXCLUSIVE ON, is that the file you
- are printing to will be locked when you try to read it. Unless you close it
- with the SET PRINTER TO command beforehand. The low level file functions
- Clipper provides do not give any way to open a file in shared mode, and I
- would guess that the same is true of the redirection functions (SET PRINTER
- TO and SET ALTERNATE TO).
-
- The second problem, and what is the most likely source of what you are
- experiencing, is that the file you are writing to is buffered. Trying to
- use MemoRead() to read the file that may not be completely written will not
- yield the results you wanted. I presume you are using these functions to
- write a report that a user can scroll through.
-