>Hi!
>
>I am building a small project to be executed from an SQL server job as an operating system command (cmdexec). I need to return a value (exit code) to the server agent to be able to report failure or success.
>Can I set up the project to be able to return a value from the exe?
Yes - look in the FAQ under Win32 and Other APIs; I have at least one entry on how you can use the ExitProcess() API to close down VFP and return an exit code.