Add LPARAMETERS statement to the main program of the project. The name of the file(s) that you opening will be passed as parameters to your program by Windows. Check
http://www.berezniker.com/content/pages/visual-foxpro/how-pass-parameters-vfp-exe for some additional info.
>I had built my program (mypro.exe). In my program, I want to open many tables to work together in a form. These table are zip file with *.dtd extension. I write a codes module to unzip and open these tables.
>
>I register to windows to associate .dtd by mypro.exe.
>[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.dtd]
>[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.dtd\OpenWithList]
>"a"="m:\dtd2012\dutoan.exe"
>"MRUList"="a"
>
>However, when I double click file with .dtd extension, myprog.exe get errors with message “No PARAMETER statement is found” and that codes module to unzip and open these tables.
>
>What can I do to solve that problem?
>
--sb--