|
Re: WHERE_ARRAY, a problem? [message #47907 is a reply to message #47906] |
Thu, 16 March 2006 10:57  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
maldayeh@gmail.com writes:
> This example is in the function: where_array and it is not giving the
> indicated output:
>
> ; EXAMPLE:
> A=[2,1,3,5,3,8,2,5]
> B=[3,4,2,8,7,8]
> result = where_array(a,b)
> print,result
> 0 0 2 2 3 5
>
> indeed, I am getting this error:
> % Compiled module: WHERE_ARRAY.
> % WHERE_ARRAY: Inproper parametrs
> % WHERE_ARRAY: Parameters cannot be of type Structure
This is a famous gotcha:
http://www.dfanning.com/misc_tips/noidea.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|