would something like this work?
Compyle.prg
LPARAMETERS tcPrg
IF FILE( FORCEEXT(tcPrg,'prg'))
RELEASE PROCEDURE (tcprg)
COMPILE (tcPrg)
SET PROCEDURE TO (tcPrg) additive
ENDIF
Glenn
>I am constantly running into this annoyance in the VFP IDE setting: I have a procedure file that has been made "visible" by a "Set Procedure To" command. Every time I edit/recompile the PRG, the FXP file is removed from memory, and I have to remember to go back to the Command Window and again issue a "Set Procedure To ... Additive" command. Otherwise, as many of you have experienced, the routines in the procedure file cannot be found.
>
>Is there not a way to tell VFP to automatically do a "Set Procedure To ... Additive" whenever you recompile a PRG? VFP _knows_ it has removed the corresponding FXP from memory (because you edited it) during the same VFP session... so it seems there should be a way.