On Apr 24, 2007, at 11:14 PM, Sebastian Sparrer wrote: > Hello! > > Where do I find a detailed description of the ErrorCode property a > Shell returns? The Language Reference says that the shell returns 0 > on normal executions and that this code would be a system supplied > code. However, the code for "Shell returned nothing" was 256 until > RB2006r4, but is not 1. At least that's what I saw when I upgraded an > old project.
Prior to 2006r4, the ErrorCode was 256 times the actual number returned by the shelled process. Therefore, if you ran a command that returned 1, you'd get 256 in the errorcode. If it returned 2, you'd get 512, and so on. Starting in 2006r4, the return value is properly returned in the errorcode, so you'll now get 1 or 2 in the cases I mentioned above. HTH, Tim -- Tim Jones [EMAIL PROTECTED] _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
