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

Home » Public Forums » archive » Re: Insert row in 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: Insert row in structure [message #14596 is a reply to message #14595] Thu, 11 March 1999 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Whoops, I wrote:

> Well, then. How about something like this:
>
> data = {data1,num:0L,x:0.0,y:0.0,z0.0}
> dataout = Replicate(data, 100000L)
>
> Insert new DATA1 structure into position 98 in the array:
>
> newdata = {DATA1}
> dataout = dataout[0:96, newdata, 97:*]

And people who look out for me gently point out that
I meant this:

dataout = [dataout[0:96], newdata, dataout[97:*]]

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: device,decomposed=1 question
Next Topic: Changing default backgroud color of WIDGET_DROPLIST

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

Current Time: Wed Oct 08 13:47:02 PDT 2025

Total time taken to generate the page: 0.00521 seconds