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 do you get rid of command window persistence?

Status
Not open for further replies.

japplebee

Programmer
Joined
Oct 11, 2001
Messages
5
Location
US
It bothers me that when you bring up VFP 7.0, the command window isn't empty. looked through the help, & it talked about noRecentDocHistory, but I couldn't find that anywhere. I tried renaming/deleting the _command.prg, but it gets recreated each time you exit VFP 7.0.
 
The noRecentDocHistory property is set through the System Policy Editor, and would affect all applications that maintain a document history.

Just typing CLEAR in the command window will delete the information, and if you want it more automatic, consider adding code in your start up program (as specified in your _startup line in the CONFIG.FPW) to delete / clear the _command.prg file.

Rick
 
HI

1. To start with... right click on the command window and choose CLEAR.

2. Copy your default FoxUser.DBF to a specific directory of yours, say, myDir - where _command.prg is not kept. Now ..
SET RESOURCE TO myDir\FOXUSER.DBF

The history will not be saved and displayed. Remember .. every time you start, the resource file need to be set. OR.. set that in your Tools->Options ... and set that as default..

Hope this helps :-) ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
HI

"The history will not be saved and displayed. Remember .. every time you start, the resource file need to be set. OR.. set that in your Tools->Options ... and set that as default.."

Please correct the above to..

"The history will not be saved and displayed. Remember .. every time you start, the resource file need to be set."

Otherwise, you will find the _command.prg will get copied and you will start gtting the history again.

Probably, you can have that as
SET RESOURCE TO myResource
in a small myStart.prg and do that everytime you start.

:-) ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top