>> Do you have a list of the error codes that BLAT returns? I am using the
>> WinExec function from Win32API.
>
>I've generally just used the return code from WinExec(). If the type is
>"N" (for some reason, this isn't always the case) or the value is <= 32,
>then I write the message to a file.
Paul,
I have been playing with BLAT, but I am confused about the return values. Here is some sample code:
DECLARE Integer WinExec IN Win32API ;
String cDosCmd, Integer iCmdShow
* Below is a command that sends E-mail successfully. It returns 23607.
? WinExec('blat readme.txt -s "Good message" -t
tacallah@iupui.edu -i
tacallah@iupui.edu', 0)
* Below is a command that fails, because x.txt does not exist. It returns 23879.
? WinExec('blat x.txt -s "Bad message" -t
tacallah@iupui.edu -i
tacallah@iupui.edu', 0)
When I do I first command ("Good message") again, it returns 23751. Doing the second command ("Bad Message") again gives me 23751. How can tell programmically when BLAT fails. All return data types are numeric?
Thanks!