Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you output a screen to a text file?

Status
Not open for further replies.

cstella23

Technical User
Oct 4, 2002
5
0
0
US
I need to know how to output a set of counts and on-screen commento to a text file.

short example:

?"Texas"
Count for state="TX"


How can I make those results apear in a text file?


Any help apriciated!


CS
 
count for state = "TX" to MFRED
??? "Texas " + transform(MFRED,"999")+chr(13)

*??? means "print this"
*chr(13) = carriage return
Ken F
 
To output from screen to file, try:
set printer on
set printer to MyFile.txt addi
*
* output yours commands goes both screen and file
*
set printer to lpt1
set printer off
modi file MyFile.txt && to see result
Tesar
 
Or try:

SET ALTERNATE TO MyFile.TXT
SET ALTERNATE ON
?'Texas'
SET ALTERNATE OFF
SET ALTERNATE TO

MODI COMM MyFile.TXT
Dave S.
 
COOL, a couple of these will work nicely.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top