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 Chriss Miller 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
Joined
Feb 5, 2002
Messages
13
Location
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.
 
Using SET ALTERNATE and my methods are entirely different critters though. You would have to decide ahead of time where you wanted the output to go. Or if you wanted it to go to both.


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top