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

Home » Public Forums » archive » Reset fonts / Problem with colorbuttonbitmap.pro from D. Fanning
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: Reset fonts / Problem with colorbuttonbitmap.pro from D. Fanning [message #61403 is a reply to message #61279] Wed, 16 July 2008 02:41 Go to previous messageGo to previous message
jameskuyper is currently offline  jameskuyper
Messages: 79
Registered: October 2007
Member
Justus Skorps wrote:
> On 15 Jul., 21:21, Jeremy Bailin <astroco...@gmail.com> wrote:
>>> Fonts are not the only thing totally screwed up in IDL...just look at
>>> the 'where' command...
>> I'm just curious... what about WHERE do you find screwed up? In my
>> experience, it always behaves very predictably!
>>
>> -Jeremy.
>
> The 'problem' is when no element matches the condition...you always
> have to use the count parameter to check if the result is an usable
> index..
>
> for example, if I have an array A and I want to set all elements less
> than 0 to 0..then I would like to use a command like
>
> A[where(A lt 0)]=0
>
> But this works only if there is at least one element in A less than
> 0...so you always have to use two lines of code for such a simple
> thing..

A valid issue; but to call it "screwed up", you should have some more
convenient alternative approach in mind. What would that alternative be?
What would SkorpesWhere do when no element matches the condition?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Format Code Question
Next Topic: Plea for RESOLVE_ALL Help!

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

Current Time: Sat Oct 11 17:32:42 PDT 2025

Total time taken to generate the page: 0.55970 seconds