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

Home » Public Forums » archive » accessing heap variable elements
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
accessing heap variable elements [message #25063] Sat, 12 May 2001 09:49
Jared Crossley is currently offline  Jared Crossley
Messages: 3
Registered: June 2000
Junior Member
Can any one explain this to me?
------------------------------------
IDL> a=ptr_new( lonarr(2) )
IDL> help, a
A POINTER = <PtrHeapVar2229>
IDL> help, *a
<PtrHeapVar2229>
LONG = Array[2]
IDL> help, *a[0]
<PtrHeapVar2229>
LONG = Array[2]
IDL> help, *a[1]
% Attempt to subscript A with <INT ( 1)> is out of range.
------------------------------------
I would expect that *a[0] and *a[1] would be long integers. How do I
access the elements in the long integer array heap variable?

Thanks, Jared
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL 5.5?
Next Topic: Re: accessing heap variable elements

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

Current Time: Wed Oct 08 17:41:25 PDT 2025

Total time taken to generate the page: 0.00730 seconds