DECLARE ExitProcess IN WIN32API INTEGER ExitCode ExitProcess(lnRetVal)>Does anyone know of a way to set the return code from a FoxPro program so that my .NET program can check the return code after calling a FoxPro exe? Typically after calling a command line app in .NET you check the return code from that exe to determine if there were errors… I was wondering if there is a way to make FoxPro return an error code to the operating system so that the calling program knows about it without looking for error files.