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

Home » Public Forums » archive » Re: idl syntax validation
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: idl syntax validation [message #50669 is a reply to message #50668] Fri, 13 October 2006 17:33 Go to previous messageGo to previous message
Dominic[1] is currently offline  Dominic[1]
Messages: 13
Registered: October 2006
Junior Member
Hahahaha, yeah, that would help... but then what would I use my fancy
function for?

Any ideas on how to suppress this error message?

dometz


David Fanning wrote:
> Dometz writes:
>
>> Thanks you for your help... it works pretty well, but I still get some
>> errors that I am not able to catch... well, I am able to catch them but
>> it prints an error message. How can I get rid of that error message /
>> meaning that it wont print any error message?
>>
>> IDL> validate_routine, ["valid"]
>> 1
>> IDL> validate_routine, ["foo"]
>>
>> read_png()
>> ^
>> % Syntax error.
>> At: /home/dometz/test_cases/idl/foo.pro, Line 8
>> 0
>> IDL> exit
>>
>>
>> function validate_syntax, ROUTINE
>> COMPILE_OPT HIDDEN
>> CATCH, ERROR
>> IF (ERROR NE 0) THEN RETURN, 0
>> RESOLVE_ROUTINE, ROUTINE, /EITHER, /COMPILE_FULL_FILE
>> RETURN, 1
>> END
>>
>> pro FOO
>> read_png()
>> END
>>
>>
>> any ideas?
>
> I have an obvious one: use the correct IDL syntax for READ_PNG.
> That should help. :-)
>
> 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
Previous Topic: Re: Opening a .isv file
Next Topic: Basic format code question

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

Current Time: Wed Oct 08 18:15:01 PDT 2025

Total time taken to generate the page: 0.00205 seconds