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

Home » Public Forums » archive » Re: Is there any maximum number of lines for a procedure?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Is there any maximum number of lines for a procedure? [message #52621] Mon, 19 February 2007 14:49
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
Hi!

I think that the solution depends very strongly
on the exact error messages you get, so we'd need
those (and the whole code).

And, as others have mentioned, the line that
triggers the syntax error is not necessarily the
one that needs to be corrected. I once had an errant
period in some source code, and the syntax error
was triggered about 30 lines of code later.


chl
Re: Is there any maximum number of lines for a procedure? [message #52624 is a reply to message #52621] Mon, 19 February 2007 11:21 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
rusben wrote:
> Is there any maximum number of lines for a procedure?
>
> I'm asking for this question because I've compiled a large procedure
> (650 lines) in idl 6.3 and syntax errors ocurred.
>
> I've tried to compile the error lines separately and they worked out,
> but in the whole function they crash.
>
>
> Fanning, how about holydays in Madrid�?
>
> thanks, IDL gurus ! ! !
>
> from GRAHI headquarters -- hydrologic and radar research systems
>

Rusben, you might want to put a special attention on the 1st error... if
you make a mistake, let's say you write END IF instead of ENDIF, you
will have several errors later in your file... like at the declaration
of your pro/function.

Jean H.
Re: Is there any maximum number of lines for a procedure? [message #52625 is a reply to message #52624] Mon, 19 February 2007 11:11 Go to previous message
rusben is currently offline  rusben
Messages: 3
Registered: December 2006
Junior Member
They are all syntax errors.

And the misterious fact is that separatelly, the same errors lines
work.

gracias por responder tan rapido



from GRAHI headquarters -- hydrologic and radar research systems
Re: Is there any maximum number of lines for a procedure? [message #52626 is a reply to message #52625] Mon, 19 February 2007 10:51 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
rusben writes:

> Is there any maximum number of lines for a procedure?

No, no maximum number that I know about.

> I'm asking for this question because I've compiled a large procedure
> (650 lines) in idl 6.3 and syntax errors ocurred.
>
> I've tried to compile the error lines separately and they worked out,
> but in the whole function they crash.

We would have to know more about the error messages that
are generated to even make a guess.

> Fanning, how about holydays in Madrid?

Muy divertido! En solo una semana pude leer un periodico!
Y las profesoras estuvieron muy, muy bonita. :-)

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Is there any maximum number of lines for a procedure?
Next Topic: How does auxdata in mesh_surfacearea work?

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

Current Time: Wed Oct 08 20:01:34 PDT 2025

Total time taken to generate the page: 0.00605 seconds