comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Catched in a catch loop
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Catched in a catch loop [message #94799] Wed, 18 October 2017 06:48 Go to previous message
LNpellen is currently offline  LNpellen
Messages: 37
Registered: November 2009
Member
I'm not used to CATCH - I strive to write the code robust enough to not cause errors. No I need it and seem to not understand how.

Using RESTORE with a not valid save file causes
% RESTORE: Not a valid save file:

So I try with this catch, but the error occurs even though I get the dialog With the error-message I wrote (looping until I have to crash the program).

What have I misunderstood?



CATCH, err_stat
IF err_stat NE 0 THEN BEGIN
CATCH, /CANCEL
sv=DIALOG_MESSAGE('Not valid .sav file: '+adr, /INFORMATION)
ENDIF
RESTORE, adr



-Ellen
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: tvscl
Next Topic: tvscl

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:17:58 PDT 2025

Total time taken to generate the page: 0.01636 seconds