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

Home » Public Forums » archive » Re: Renaming tags in an array of structures
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: Renaming tags in an array of structures [message #72549 is a reply to message #72548] Thu, 16 September 2010 11:50 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Michael Williams writes:

> Can anyone see how to fix these problems so that the function works
> for arbitrarily many tag names, copies the data (ideally without using
> execute statements, which is the only way I can think of doing it),
> and the old fields are deleted? Or is there another solution
> altogether?

Yes, I think I can see how to do it. I can't see how to
do it in a couple of lines of code. And I can't see how
to do it without either using EXECUTE or FOR loops. But
I think it can be done.

Is this worth something to you? :-)

This would be a couple of hours worth of effort to
write a completely general program. For example,
you will probably have to write some kind of
recursive function to copy tag values that are
pointers and/or structures, etc. Just that alone
will take a couple hours, probably, although I
used to have something like that laying around
here.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: color tiffs
Next Topic: Re: IDL 8.0; difficulties with "New Graphics"

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

Current Time: Fri Oct 10 18:49:20 PDT 2025

Total time taken to generate the page: 1.44143 seconds