home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!stanford.edu!rock!concert!samba!usenet
- From: Yanzhang.Lu@bbs.oit.unc.edu (Yanzhang Lu)
- Subject: Re: FOXPRO 2 - HELP - REDIRECTING "?" OUTPUT TO TEXT FILE
- Message-ID: <1992Aug13.001155.27107@samba.oit.unc.edu>
- Summary: OUTPUT FILE, Printer
- Sender: usenet@samba.oit.unc.edu
- Nntp-Posting-Host: lambada.oit.unc.edu
- Organization: Extended Bulletin Board Service
- References: <i13.1@cs-acad-lan.Lakeheadu.Ca>
- Date: Thu, 13 Aug 1992 00:11:55 GMT
- Lines: 26
-
- In article <i13.1@cs-acad-lan.Lakeheadu.Ca> i13@cs-acad-lan.Lakeheadu.Ca writes:
- >I need to redirect the output from the question mark command (eg. ? recno(),
- >? "I NEED HELP!!!!") to a text file. The command SET DEVICE TO FILE
- ><FILE NAME> only redirects output produced by the @...SAY command.
- >Other commands such as DISPLAY have their own parameters to redirect
- >output to a file. Nobody seems to know how to redirect the output of "?"
- >to a text file. Any ideas would be greatly appreciated.
- >
- >Thanks a million!!!!
- >Dan Sullivan
- ----------------------------------------------------------
- Well, I know how to do it.
- Asuming your output text file is test.txt.
- Put following statement in your program:
- set printer to test
- set printer on
- ? "the first line"
- ? "the second line"
- You can use "set printer to" to close the file test.txt.
- Good luck.
-
- --
- The opinions expressed are not necessarily those of the University of
- North Carolina at Chapel Hill, the Campus Office for Information
- Technology, or the Experimental Bulletin Board Service.
- internet: bbs.oit.unc.edu or 152.2.22.80
-