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

Home » Public Forums » archive » Catch problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Catch problem [message #23029] Tue, 02 January 2001 10:08
s007amf is currently offline  s007amf
Messages: 8
Registered: January 2001
Junior Member
Recently, I started learning the catch procedure to help with some error
checking. I typed the code word-for-word out of the IDL 5.3
documentation:

PRO ABC

A = fltarr(10)

CATCH, Error_status

IF Error_status NE O THEN BEGIN
PRINT, 'ERROR INDEX: ', Error_Status
PRINT, 'ERROR MESSAGE: ', !ERR_STRING
A = FLTARR(12)
ENDIF

A[11] = 12

HELP, A

END

to help me learn this command. However, this code does not seem to
execute correctly. As far as I can tell, the code causes some sort of
infinite loop on the if statement. Any ideas what I am doing wrong? I am
using IDL 5.4 on a Mac.

--
Alan
[Message index]
 
Read Message
Previous Topic: Re: Oddball Event Handling (Longer than it Ought to Be)
Next Topic: Re: Catch problem

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

Current Time: Fri Oct 10 03:42:20 PDT 2025

Total time taken to generate the page: 0.48188 seconds