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

Home » Public Forums » archive » Re: Frustrating array in structure. Please help
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
Re: Frustrating array in structure. Please help [message #23998] Thu, 01 March 2001 12:04
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
David Fanning wrote:
>
> Pointers, my man, pointers! :-)
>
> new = {FID, Var1:0.0, data:Ptr_New()}
>
> Later:
>
> If Ptr_Valid(new.data) THEN *new.data = mydata ELSE $
> new.data = Ptr_New(mydata)

Or,

new = {FID, Var1:0.0, data:Ptr_New(/allocate)}
*new.data = mydata

Cheers,
Pavel
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDLgrLegend geometry
Next Topic: Re: idl5.4 and win2k

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

Current Time: Wed Oct 08 17:32:52 PDT 2025

Total time taken to generate the page: 0.00664 seconds