dereferencing pointer arrays. [message #33964] |
Wed, 05 February 2003 19:01 |
Rochelle Hatton
Messages: 2 Registered: February 2003
|
Junior Member |
|
|
On following some useful tips from the newsgroup, I have
referenced my assoc variables (multiple files) with pointers. I have then
placed these pointers into an array. Not being used to using pointers,
I checked the help on dereferencing my array (BTW I really dislike the pdf
online help in 5.6!).
So the help says, if you have a pointer array mm, you can dereference it using
the index e.g. if I want the first pointer, I can type
IDL> print, *mm[0]
however I get this error-
% PRINT: File expression not allowed in this context: <PtrHeapVar9>.
Also, if I assign the index to a variable, it works e.g. xx=*mm[0]
I guess this is a problem because of what I am storing in the pointer,
namely a non-variable reference thingy which is
like a pointer (the assoc variable).
Is there any way I can dereference the assoc
variable without having to assign it-the whole point of using the pointer??
--
Rochelle Hatton
Medical Physicist
Department of Nuclear Medicine and Ultrasound
Westmead Hospital
|
|
|