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 #51240 is a reply to message #51054] Fri, 03 November 2006 10:49 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
R.G. Stockwell wrote:
> "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

same thing with i! ... and that would explain, I guess, the <no name> in
the error message.

Jean
[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: Sat Oct 11 05:19:25 PDT 2025

Total time taken to generate the page: 7.83952 seconds