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

Home » Public Forums » archive » pointer & structure
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
pointer & structure [message #69277] Tue, 12 January 2010 07:42
Thibault Garel is currently offline  Thibault Garel
Messages: 55
Registered: October 2009
Member
Hi,

i have created a structure S which contains a few elements (arrays)
a,b,c : S={a,b,c}
Then i replicate it N times.
Now i want to create iteratively 10 other structures with the same
skeleton.
Since, i did not see any other way to do, i used a pointer p to stock
the structures:

for k=0,10 do begin
*p(k) = S
endfor

By typing help,*p(k) i know *p(k) is indeed a structure BUT *p(k).a
(for instance) prints "Expression must be a structure in this context:
P"

So my question is: how can I extract the information stored in *p(k) ?

I hope its not too unclear :)
Thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Fitting with tabulated models
Next Topic: Re: Removing if then else loop for efficiency

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

Current Time: Wed Oct 08 19:05:55 PDT 2025

Total time taken to generate the page: 0.00588 seconds