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

Home » Public Forums » archive » error handling
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: error handling [message #63463 is a reply to message #1347] Sun, 09 November 2008 20:59 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
bulrushmower@gmail.com writes:

> Frustrating!!
> I tried whole afternoon, did not work.
> My program like this:
> files =3D file_search(input_location,'*.dat', count=3DnumFiles)
> For i=3D0, numFiles do begin
>
> CATCH, Error_status
>
> IF Error_status NE 0 THEN BEGIN
> printF, batch_unit, 'Error index: ', Error_status
> printF, batch_unit, 'Error message: ', !ERROR_STATE.MSG
> PrintF, batch_unit, 'Problem with processing step ',
> files[K]
>
> ;
> CONTINUE
> ENDIF
>
> dosomedataprocessings, file[k]
>
> ENDFOR
>
> Catch, /Cancel

What didn't work about it?

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plot: idl_guide4 UK_NCAS-Meteo-Library
Next Topic: Re: Empty arrays?

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

Current Time: Sun Nov 30 14:51:26 PST 2025

Total time taken to generate the page: 0.48177 seconds