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

Home » Public Forums » archive » Re: accessing heap variable elements
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: accessing heap variable elements [message #25062 is a reply to message #25061] Sat, 12 May 2001 10:28 Go to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
On Sat, 12 May 2001, Jared Crossley wrote:

> 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

Hi Jared,

last line should be (*a)[0]

-k.

--
Ken Mankoff
LASP://303.492.3264
http://lasp.colorado.edu/~mankoff/
[Message index]
 
Read Message
Read Message
Previous Topic: accessing heap variable elements
Next Topic: Convert Integer to Text

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

Current Time: Sat Oct 11 08:59:19 PDT 2025

Total time taken to generate the page: 0.87791 seconds