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

Home » Public Forums » archive » Where did my variable go?
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
Where did my variable go? [message #6786] Tue, 13 August 1996 00:00
gromm is currently offline  gromm
Messages: 11
Registered: July 1996
Junior Member
This might be one of those cases of disappearing variables, I'm not
sure. However, this is a variable disappearing in a nested FOR loop
rather than a function or procedure. I think it might have to do with
the order of processing FOR loops. Does IDL process the innermost FOR
loop first? I have something like this:

FOR Z=1, WHATEVER DO BEGIN

FOR Y=1, WHATEVER2 DO BEGIN

FOR X=1, WHATEVER3 DO BEGIN

IF Z*SOMETHING LT A(X) THEN THIS ELSE THAT

ENDFOR

ENDFOR

ENDFOR

Then IDL tells me that the Z in the Z*SOMETHING of the X FOR loop is
undefined. I just want it to take the value of the Z at whatever loop
number Z is in. How can I remedy this situation?

-Gadi
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Q: Clearing Widget Events
Next Topic: C-->IDL / FORTRAN-->IDL searched

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

Current Time: Wed Oct 08 17:02:33 PDT 2025

Total time taken to generate the page: 0.00532 seconds