Re: Is there any maximum number of lines for a procedure? [message #52621] |
Mon, 19 February 2007 14:49 |
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  |
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 #52626 is a reply to message #52625] |
Mon, 19 February 2007 10:51  |
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.")
|
|
|