Hi,
Does anybody know something about the use of NO-ERROR in combination with COMPILE?
If I want to compile a file, but the target-directory doesn't exist, Progress shows an error-message. However, if I add NO-ERROR and use ERROR-STATUS, no error-message appears and ERROR-STATUS:ERROR is "no".
<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
/* example */
DEFINE VARIABLE i AS INTEGER.
COMPILE test.p SAVE INTO "c:\test\" NO-ERROR.
/* show error-status */
MESSAGE ERROR-STATUS:ERROR
VIEW-AS ALERT-BOX INFO BUTTONS OK.
IF ERROR-STATUS:ERROR THEN
DO i = 1 TO ERROR-STATUS:NUM-MESSAGES:
MESSAGE ERROR-STATUS:GET-MESSAGE(i)
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.
[/code]
Any suggestions?
Anika
Does anybody know something about the use of NO-ERROR in combination with COMPILE?
If I want to compile a file, but the target-directory doesn't exist, Progress shows an error-message. However, if I add NO-ERROR and use ERROR-STATUS, no error-message appears and ERROR-STATUS:ERROR is "no".
<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
/* example */
DEFINE VARIABLE i AS INTEGER.
COMPILE test.p SAVE INTO "c:\test\" NO-ERROR.
/* show error-status */
MESSAGE ERROR-STATUS:ERROR
VIEW-AS ALERT-BOX INFO BUTTONS OK.
IF ERROR-STATUS:ERROR THEN
DO i = 1 TO ERROR-STATUS:NUM-MESSAGES:
MESSAGE ERROR-STATUS:GET-MESSAGE(i)
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.
[/code]
Any suggestions?
Anika