>Good morning from Lima, Peru
>
>How can I return an exit code to the operating system from my visual foxpro .exe programs at runtime?
>I have tried making a RETURN
statement as the last line of my main .prg program, but it does not seem to work.
>
There's an entry in the FAQ describing how to do this using the Win32 API ExitProcess(), so check the FAQ.