procedure editor runs on exit

zygolux

New Member
Hi all,

I am finishing my very first program in progress and now I have a small issue to run it.

I create a bat to run my program, but on exit, a procedure editor is always launched...

I have been told that the option -r should solve this, but it does not.

Any idea what's missing.

Thanks a lot.

FYI, this is my_program.bat

start W:\apps\dlc100b\bin\prowin32.exe -pf W:\apps\eb2\ini-pf\pf\rw\dbprd.pf -ininame W:\apps\eb2\ini-pf\svg\dbprd.svg -p w-main.w -r
exit
 
Inside the MAIN-BLOCK of your w-main.w Put a Quit statement at the bottom after the wait-for or after the DO block.

Hope this helps.
 
-rr should force it out of the procedure editor, if memory serves.

But, you are better off putting a QUIT statement in your code. Perhaps you put the QUIT in the wrong place. It should be where your code naturally falls out to after normal processing. Have you got a RETURN statement somewhere that the program uses to bomb out?

What I prefer to do is to have a small program that runs a secondary program and quits, so I am sure that the program will quit.

It also means that I can run the same code from a menu as from a batch file and be sure that the program won't quit in the menu.
 
Back
Top