Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute Question
Message
 
To
04/08/2001 14:38:19
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00539706
Message ID:
00539826
Views:
20
>>Just one warning.
>>In Vfp6, when you would doubleclick on a PRG in the Windows Explorer, it would run the PRG in VFP6.
>>But in VFP7, it will open the PRG using MODI COMM so that you can edit it.
>>When the PRG is compiled, you will find a FXP file. When you doubleclick on that file, it will be executed, regardless of version 6 or 7 of VFP.
>
>Is there a corresponding action event to do make run instead of modi comm? Like setting action='Run'; instead of 'Open'?

Yes, with Action='Run' it will run the .prg instead of open it. Of course, this will only work when the default associations are in place. I hated the behaviour in VFP6, so that's why I assigned .PRG's to the NotePad.
Now that the default behaviour has been changed in VFP7, I put the original link back.
The only drawback (for me at least) is that every time VFP7 must open or run a file, a new instance of VFP7 is opened. I liked the old behaviour more (When a VFP6 session was opened, that same instance was used to open/run the file that is selected), but that is another story.

>I'm not using VFP7 yet and this is a very good Gotcha! Thanks.

No problem. Glad to help out and to make it work for you when you go to VFP7 (very soon I might hope for you)

Regards,
Frank Camp
Previous
Reply
Map
View

Click here to load this message in the networking platform