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
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
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