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

VFP 6 Starting a testing session 2

Status
Not open for further replies.

eric43

Programmer
Apr 29, 2005
94
AU
I use this code which I think Geoff gave me a while ago - with a variation for each of my projects - each shortcut to a similar prg for each project starts them nicely when required - I colour code the background to help in stopping errors

Code:
*-- Startup program called to load Project abc
*-- development environment 
*-- Clean everything up 
CLEAR MEMORY 
CLOSE DATA 
CLEAR ALL 
CLOSE ALL 
SET SYSMENU TO DEFAULT 



*-- Make the screen green-on-black with a  title 
WITH _SCREEN 
   .BackColor = RGB (0, 0, 255) 
   .ForeColor = RGB (255, 0, 0) 
   .FontName = 'Courier New' 
   .FontSize = 10 
   .Caption = 'abc  Development' 
   .cls 
ENDWITH 

*-- Go to the development directory 
CD 'D:\DEV\_Foxpro\Projects\abc'
? curdir()
*-- Set F12 to run this program 
PUSH KEY CLEAR 
ON KEY LABEL F12 DO _backup.prg

*-- Open the abc project ... 
MODIFY PROJECT abc NOWAIT 

*-- ... and activate the Command Window 
ACTIVATE WINDOW COMMAND

As I very often type 'do main' when the Command Window opens can I add that to this prg - ie write it each time the project opens?

Many
thanks

Eric
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top