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

Home » Public Forums » archive » Re: A strange error with WHERE
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: A strange error with WHERE [message #67553 is a reply to message #67476] Fri, 31 July 2009 12:46 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
David Fanning wrote:
> Lindzen writes:
>
>> It's not that problem. Please see below:
>>
>> PRINT, WHERE(lon_aoc ge 117.25)
>> 1708 1799 .....
>> PRINT, WHERE(lon_aoc ge lon_left)
>> -1
>> PRINT, lon_left
>> 117.25
>>
>> Well. Maybe I need to check whether there exist strange characters in
>> the code, although it is almost impossible.
>
> OK, here is what I think is wrong, then.
> I think lon_left is not a scalar. I think
> it is a one-element array. It needs to be
> a scalar. This will probably work:
>
> PRINT, WHERE(lon_aoc ge lon_left[0])
>
> Cheers,
>
> David
>
> P.S. This is known as the Gotcha That Gets You Every Time. :-)

I enjoy watching you grok people's problems from afar. It's quite instructive when
contemplating debugging in general.

Anyhoo....

cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: workbench stops responding
Next Topic: Re: make_rt for 32 and 64 bit applications?

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

Current Time: Sun Oct 12 01:22:18 PDT 2025

Total time taken to generate the page: 2.51675 seconds