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

Home » Public Forums » archive » Delete element from the structure inside another structure
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: Delete element from the structure inside another structure [message #88949 is a reply to message #88946] Mon, 07 July 2014 02:51 Go to previous messageGo to previous message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
> Could you please also write me, how to completely delete a[1] ?

I would probably do this:

a[1]=ptr_new() ;this sets a null pointer

and then test for it in the code:

if ptr_valid(a[i]) then...

> If I want to print x, should I do it in the next way: print,*a[1].x ?

print,(*a[1]).x

cheers,
greg
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: multi-layer tiff file
Next Topic: Plotting the region of interest from satellite image

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

Current Time: Wed Oct 08 15:26:49 PDT 2025

Total time taken to generate the page: 0.00454 seconds