>I haven't had to make a change to a form in a while.
>I made a small change. Then later, I just opened the project and clicked on DOC and then MODIFY.
>It came up with a blank page.
>
>Why would it do that?
>
>I need some help. Kind of panicked right now.
>
>Rich Murillo
>Express Stats
Rich
There are some circumstances doing this, to me most likely MODI FORM in two IDEs.
A) Use your backup. No backup, no mercy.
If no A)
Do not compile or the like. Create a backup of the form files
SET DELETED OFF
USE YourSCX
BROWSE
Are there any deleted records?
B) If, recall the delete records, delete those not deleted.
close the cursor, MODI FORM ...
If this runs havoc, your recall included to much records. Try to learn what belongs to a form, there is some description in HOME(1), or compare with a form running.
If B) answers NO.
C) If an app / exe with the form running is available:
If you can inject code into your app, for example an external report, you might use this to extract the files. As you might know, all files in the project exist in the app/exe AS A FILE. So, if you can run code in the context of your app, for example a report, you might run something like
lcX = FileToStr("cMyForm.scx")
STRTOFILE(lcX,PUTFILE('SCX','','SCX'))
lcX = FileToStr("cMyForm.sct")
STRTOFILE(lcX,PUTFILE('SCT','','SCT'))
In reports BeforeOpenTable event
You also might use a DBC containers stored procedure, if you play with the DBC events, you might run the same as above..
If this fails, there is still refox, or you might learn how the extract the SC* files from the app. It's not really hidden.
D): A), B) and C) give no result, recreate the form from scratch.
Pro tip:
- Do regular backups
- Use a decent source control tool like git. See
https://github.com/fdbozzo/foxbin2prg/blob/master/docs/FoxBin2Prg_git.md about my ideas. This might work
like a backup
- At least do a scheduled copy of your code. I use SecondCopy for decades, it just duplicates my code and might create packed copies with datetime name, so you can go back.
Note, this is not a backup!
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]