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

Home » Public Forums » archive » Please help
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: please help [message #51054 is a reply to message #5448] Fri, 03 November 2006 08:03 Go to previous messageGo to previous message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
"creon" <cinarbencan@gmail.com> wrote in message
news:1162568712.436303.195010@m7g2000cwm.googlegroups.com...
> Hello. Iam a beginner and i am having trouble with a loop.It's like
> this:
> j=0
> for i=0,20 do begin
> if (data.field08[i]='V') then begin
> dataV.time[j]=data.field10[i]
> dataV.object[j]=data.field07[i]
> dataV.count[j]=data.field09[i]
> dataV.filter[j]=data.field08[i]
> endif
> j++
> endfor
> if i delete j++, it works fine writing all to the 0.th. but i need j to
> increase each time. so i add j++ and recieve an error message like
> this:
> " Subscript range values of the form low:high must be >= 0, < size,
> with low <= high: <No name>"
> how can i fix that? i will be thankfull if you help me out with this.
> good day.
>

A shot in the dark, do you want your j++ inside the if block?

Perhaps j is being increased to 20, and your dataV structure
does not have arrays with 20 elements. If that doesn't help,
post more information such as:
help,dataV,/st
help,data,/st

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Segmentation Fault
Next Topic: data removal from array

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

Current Time: Fri Oct 10 00:43:24 PDT 2025

Total time taken to generate the page: 0.47856 seconds