>>>hey anyone know how to associate a PRG with VFP to EDIT rather than run? I have tried with no success to look for command line params and I changed the dde message to edit... But, alas, still no go at this station.
>>>
>>>Adv
Thanksance
>>
>>Hi Joe, long time no see you ;
>>At least in 5.0, you go to the menu "Tools", then select "options"
>>and click on the tab "project", on "Project double-click action"
>>select "Modify select file", that will do it.
>>
>
>This has nothing to do with how VFP handles editing - he's trying to make the File Association in the registry edit the .PRG rather than run it when the .PRG is clicked in Explorer. This requires changing a registry key; by default, this causes VFP to start and sends it a message via DDE to run the program.
>
>It's easy enough to start a different program as an editor, or to start a separate VFP session than the one that might be running and have the new VFP session start a .PRG that accepts a command line parameter for the file name; it could then DO a MODI COMM (FileNameParm) NOWAIT to start the editor.
>
>It would be better to use DDE;' unfortunately, I don't know the dde operation or context required in the registry to do this. What I actually do if I want an edit action that starts a fresh VFP and edits the .PRG is have a small program in my VFP directory called MODICOMM.PRG that reads like:
>
>
lparameters cFileToOpen
>CLEAR
>MODI COMM (cFileToOpen) NOWAIT
>CANCEL
>
>
>and an accompanying edit key in my registry that runs the command:
>
>"C:\Program Files\DevStudio\VFP\VFP.EXE" "%1"
>
>>P.S. Don't forget to click on "Set as Default".
>>Good luck.
My error, I didn't read properly.
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould