2015-02-23

Rescue your known SCX, VCX or DBF from your VFP EXE

This is a nice tip from Leonid Lepin, published on Foxite:
If you have exe file MyApp.exe and want to extract form MyForm from it then in Command window run next commands:

ON KEY LABEL F7 USE MyForm.scx ALIAS MyForm IN 0 AGAIN
ON KEY LABEL F8 SELECT MyForm
ON KEY LABEL F9 COPY TO MyForm_.scx
DO MyApp.exe


... and when aplication starts press F7, F8 and F9 consequently. Then locate files MyForm_.scx and MyForm_.sct and rename them to MyForm.scx and MyForm.sct.
If your MyApp.exe clears on key label when starts, you may run these On key label commands from Database events or triggers.