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

Home » Public Forums » archive » Re: using LOCATIONS keyword of IDLgrText?
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: using LOCATIONS keyword of IDLgrText? [message #52391] Sat, 03 February 2007 11:07 Go to previous message
badjelly.witch is currently offline  badjelly.witch
Messages: 27
Registered: May 2006
Junior Member
On Feb 3, 5:20 am, Laurens <mr....@inter.nl.net> wrote:
> I found a way to make it work, though I don't know if its
> efficient or nice to do;
>
> had to give a reform command to the positions keyword:
>
> , POSITIONS=reform(posArr,3,i)
>
> I'm open to suggestions for nicer solutions though this works
> fine for me...

That looks nice enough to me, but if to avoid flattening the array
when you extend it you can add a couple more brackets:

posArray = [[posArray],[newPos]]

By the way, extending an array repeatedly like this gets *very*
inefficient when the array is large, because you're actually creating
a whole new array every time. But for your application this shouldn't
be a problem.
[Message index]
 
Read Message
Read Message
Previous Topic: Re: IDLDBDatabase and DIALOG_DBConnect()
Next Topic: non linear systems, mpfitexpr and functargs

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

Current Time: Sun Oct 12 01:02:08 PDT 2025

Total time taken to generate the page: 0.00598 seconds