[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Arrays in Structures Question (newbie)



Hej guys,

I was writing some structures to hold some data values and I am having a
hard time determining what is going inside IDL.  Could someone explain why
I keep gettin two values back when I am just asking for one?  And why the
values are getting switched down a level?

IDL> pointdata([1]).distance([[44],[0]]) = 12 
IDL> print, pointdata([1]).distance([[44],[0]])
      12
      12 
IDL> pointdata([1]).distance([[44],[1]]) = 3 
IDL> print, pointdata([1]).distance([[44],[1]])
       3
       3 
IDL> print, pointdata([1]).distance([[44],[0]])
       3
      12 

Thanks for any help,

Mike