home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / database / 6083 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.6 KB  |  40 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!stanford.edu!rock!concert!samba!usenet
  3. From: Yanzhang.Lu@bbs.oit.unc.edu (Yanzhang Lu)
  4. Subject: Re: FOXPRO 2 - HELP - REDIRECTING  "?" OUTPUT TO TEXT FILE
  5. Message-ID: <1992Aug13.001155.27107@samba.oit.unc.edu>
  6. Summary: OUTPUT FILE, Printer
  7. Sender: usenet@samba.oit.unc.edu
  8. Nntp-Posting-Host: lambada.oit.unc.edu
  9. Organization: Extended Bulletin Board Service
  10. References: <i13.1@cs-acad-lan.Lakeheadu.Ca>
  11. Date: Thu, 13 Aug 1992 00:11:55 GMT
  12. Lines: 26
  13.  
  14. In article <i13.1@cs-acad-lan.Lakeheadu.Ca> i13@cs-acad-lan.Lakeheadu.Ca writes:
  15. >I need to redirect the output from the question mark command (eg. ? recno(),
  16. >? "I NEED HELP!!!!") to a text file.  The command SET DEVICE TO FILE 
  17. ><FILE NAME> only redirects output produced by the @...SAY command.
  18. >Other commands such as DISPLAY have their own parameters to redirect 
  19. >output to a file.  Nobody seems to know how to redirect the output of "?"
  20. >to a text file.  Any ideas would be greatly appreciated.
  21. >
  22. >Thanks a million!!!!
  23. >Dan Sullivan
  24. ----------------------------------------------------------
  25. Well, I know how to do it.
  26. Asuming your output text file is test.txt.
  27. Put following statement in your program:
  28. set printer to test
  29. set printer on
  30. ? "the first line"
  31. ? "the second line"
  32. You can use "set printer to" to close the file test.txt.
  33. Good luck.
  34.  
  35. --
  36.    The opinions expressed are not necessarily those of the University of
  37.      North Carolina at Chapel Hill, the Campus Office for Information
  38.         Technology, or the Experimental Bulletin Board Service.
  39.            internet:  bbs.oit.unc.edu or 152.2.22.80
  40.