>Project components automatically added during compilation. But you must first see to it that when you right click the procedure file in the project, the "include" option should be marked check. Otherwise, the exe file would search for the procedure file in the search path,i.e., menu file was part of the project but I forgot to verify if the "include" option was marked, so the result was, everytime i open the application, a dialog box displayed to select the menu file... If this doesn't work, maybe i don't get what you're pointing to..
If you have a "main" program that starts your app, and it has tacked on to the end of it several other functions/procedures, there is no need for a SET PROCEDURE TO.
*Main.prg
DO mymenu.mpr
READ EVENTS
FUNCTION x1
...
FUNCTION x2
...
FUNCTION x3
...
*End of Main.prg
If you need to call functions X1, X2, or X3 from anywhere within your code (from your mymenu.mpr, or from a form that is brought up from the menu) you can just call it and use it. There is no need for a SET PROCEDURE TO MAIN.PRG