>My program begins with menu.spr .
>When I run it the command window remains open.
>How to hide or release it?
>Thanx in advance.
>
>Ed
Ed,
The presense of the command window means that there is no program running. When ever a program is running the command window is gone.
Your problem is this, the menu does not remain running, it loads, defines the menu, and ends. When the menu program ends the command window comes back.
To get rid of the command window you can do this;
Write a prg that is like this;
* Startup.prg
DO MyMenu.mpr
READ EVENTS
SET SYSMENU TO DEFAULT
Then in the menu give a Quit or Exit option that has this code in it;
CLEAR EVENTS
Now when you run it DO the prg instead of the menu. If this is a project then be sure to make the PRG the main item by highlighting it in the PM and then choosing Project - Set Main form the menu.