Article ID: 192352 - View products that this article applies to.
This article was previously published under Q192352
This article has been archived. It is offered "as is" and will no longer be updated.
The FoxPro Foundation Class _shellexecute can be used to run external programs, as well as open non-executable files if there is a program associated with that file. However, if there is no program associated with the file, _shellexecute returns SE_ERR_NOASSOC (31) and no action is taken upon the file. This article demonstrates how to create a procedure that uses the "Open With..." dialog box to give the user the option of selecting a program with which to open the file.
The process must be either executed from a program function or a class will have to be created from scratch. The following code describes how to do this as a program function.
Article ID: 192352 - Last Review: February 23, 2014 - Revision: 3.0