Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force Refresh of Excluded .prg
Message
From
01/03/2006 13:05:15
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01100476
Message ID:
01100504
Views:
14
>I do not understand. I want to be able to test and make changes in my excluded prg through out the day, without having to touch the exe each time.
>
>I do compile the prg each time and then copy the .prg and .fxp to the property folder for the exe. But what is a CLEAR PROGRAM?
>
>
>>>I have a prg that is excluded from the exe. While I am testing, I am copying over a new .prg file, but when the exe tries to execute the .prg code, it seems to keep the older .prg copy. How can I force the exe to get the new .prg each time, without having to get out of my application?
>>
>>Two things to try: compile it, and Clear Program. Maybe both.

I meant from inside the exe. Maybe you should
compile (yourprg)
during the startup of the exe.

As for Clear Program, that should clear any cached fxps in your exe. Here's what help says about this command:

PROGRAM
Clears the compiled program buffer. Visual FoxPro keeps a buffer of the most recently executed programs. In rare cases, Visual FoxPro might not recognize changes made to program files on disk. CLEAR PROGRAM forces Visual FoxPro to read the programs from disk, rather than from the program buffer. The most common reason Visual FoxPro might not recognize changes made to program files is your using an external or terminate-and-stay-resident (TSR) editor to modify a program file. With this exception, you should not have to use CLEAR PROGRAM.


The TSR remark used to apply to SideKick-style editors back in the days of FoxPlus... and the whole text generally applies to the IDE, but it should work the same in runtime.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform