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

Home » Public Forums » archive » Re: Array of associated variables?
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: Array of associated variables? [message #42281 is a reply to message #42280] Thu, 20 January 2005 06:25 Go to previous messageGo to previous message
sso is currently offline  sso
Messages: 13
Registered: February 2002
Junior Member
Thanks!
However, I dont get this really to work. It's probably a basic error I
am doing, but a code like this will crash.

all = ptrarr(n, /allocate_heap)

FOR i = 0, n-1 DO BEGIN
;..define a, the associated variable (that works)
p = ptr_new(a)
all(i) = p
ENDFOR

;..extract values back:
a = all(0)
pval = *a

----------
I'm not that into pointers so it may be a simple error

Sverre
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: AVI, MPEG, QT reading, writing and preprocessing
Next Topic: Tracking Cursor in Object Graphics Draw Widgets

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

Current Time: Wed Oct 08 16:06:44 PDT 2025

Total time taken to generate the page: 0.00378 seconds