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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to record output history

Status
Not open for further replies.

emcdan61

Programmer
Feb 5, 2002
13
US
I want to be able to scroll back through "x" amount of output displayed on the console. I want behaviour similar to scrolling of the command window in xp.

I can direct output to a file with "set alternate to" and then open that file with "fopen" simultaneously. Unfortunately, the file is not actually written until "set alternate" is turned off.

Any thoughts on how to skin this cat?
 
I have used a list box or edit box for this in the past, but I don't know of a way to do it on the main VFP screen.
For a list box, just use something like
Code:
Thisform.List1.ADDLISTITEM
For an edit box, use something like
Code:
Thisform.Edit1.Value = Thisform.Edit1.Value + ;
   CHR(13) + chr(10) + ;
   "SomeText"



-Dave Summers-
[cheers]
Even more Fox stuff at:
 
The part that has me baffled is recording the output. Set alternate is buffered. Not sure how to "flush" so I can update my List or editbox.
 
use a table to store the output.
That makes things a lot easier!

Rob.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top