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 #88948 is a reply to message #88947] Mon, 07 July 2014 02:49 Go to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
If you have IDL8+ you can use dictionnaries instead of structures:


IDL> a = dictionary('f1', 0, 'f2', dictionary('x', FltArr(3), 'y', 0))
IDL> print, a.f2.x
0.00000 0.00000 0.00000
IDL> a.f2.x = 2
IDL> print, a.f2.x
2
IDL> ok = (a.f2)->remove('x')
IDL> print, a.f2.x
% Key does not exist: "X"
% Execution halted at: $MAIN$

Cheers,

Fabien
[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:28:54 PDT 2025

Total time taken to generate the page: 0.00391 seconds