[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Arrays in Structures Question (newbie)
- Subject: Arrays in Structures Question (newbie)
- From: Mike Garrett <hiss(at)eagle.cc.ukans.edu>
- Date: Thu, 9 Nov 2000 16:56:46 -0600
- Newsgroups: comp.lang.idl-pvwave
- Organization: University of Kansas Computing Services
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:22092
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