Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automatic SET PROCEDURE after recompiling???
Message
From
05/04/2007 08:02:41
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01212371
Message ID:
01212383
Views:
15
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform