Maybe you could set a breakpoint on USED("alias") where alias is one of the table aliases open after the build and then run the build. That should show you when the table gets opened.
>Yes, no tables are open. The other thing is that not only are all these tables opened but a lot of ON KEY LABELS are set. The only thing I do is: BUILD EXE myproj.exe FROM myproj.pjx RECOMPILE
>
>Maybe I'll create a new project file. It's just annoying having to CLOSE ALL, and ON KEY LABEL etc... after I build.
>
>Thanks,
>
>Jerry
>
>
>
>
>>That shouldn't make a difference. I can't think of any other way to run code when a project gets built. Are you sure the tables aren't open before you start the build?
>>
>>>Thanks, but my Project Class isn't checked. Maybe I'll try checking it and unchecking it to see if that helps.
>>>
>>>Thanks,
>>>
>>>Jerry
>>>
>>>
>>>
>>>>>I am using VFP9 SP2.
>>>>>
>>>>>I inherited a VFP9 application. When I build the project I do this: BUILD EXE myproj.exe FROM myproj.pjx RECOMPILE
>>>>>
>>>>>Everything compiles fine and the EXE is created. The thing I don't get is that each time I do this, several tables are open after the EXE is built. How do you make a VFP project run code to open tables after building an EXE? And how do I stop this?
>>>>>
>>>>>Thanks,
>>>>>
>>>>>Jerry
>>>>
>>>>Check if your project has a hook associated with it. Right click on the project manager and choose "Project Info", then look at the "Project Class" check box and the class name field next to it, if it is checked.