Re: XYOUTS: Variable is undefined: Conversion destination variable. [message #69521] |
Mon, 25 January 2010 08:51  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Johannes Korn writes:
> can someone explain the meaning of the above stated error?
>
> It is produced by the following line of code:
>
> ; Plot location of Cluj-Napoca International Airport
> if (date eq '25052009') then XYOUTS, [23.67,46.8], 'C', COLOR=253
Basically, it means the syntax of your XYOUTS command
is wrong, and that "C" can't be used as a location
variable. Maybe you meant to type this:
if (date eq '25052009') then XYOUTS, 23.67, 46.8, 'C', COLOR=253
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|
Re: XYOUTS: Variable is undefined: Conversion destination variable. [message #69522 is a reply to message #69521] |
Mon, 25 January 2010 08:49   |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Jan 25, 2:44 pm, Johannes Korn <k...@freisingnet.de> wrote:
> Hi,
>
> can someone explain the meaning of the above stated error?
>
> It is produced by the following line of code:
>
> ; Plot location of Cluj-Napoca International Airport
> if (date eq '25052009') then XYOUTS, [23.67,46.8], 'C', COLOR=253
Don't you mean
if (date eq '25052009') then XYOUTS, 23.67,46.8, 'C', COLOR=253
?
|
|
|
Re: XYOUTS: Variable is undefined: Conversion destination variable. [message #69666 is a reply to message #69521] |
Tue, 26 January 2010 01:12  |
Johannes Korn
Messages: 5 Registered: January 2010
|
Junior Member |
|
|
David Fanning wrote:
> Johannes Korn writes:
>
>> can someone explain the meaning of the above stated error?
>>
>> It is produced by the following line of code:
>>
>> ; Plot location of Cluj-Napoca International Airport
>> if (date eq '25052009') then XYOUTS, [23.67,46.8], 'C', COLOR=253
>
> Basically, it means the syntax of your XYOUTS command
> is wrong, and that "C" can't be used as a location
> variable. Maybe you meant to type this:
>
> if (date eq '25052009') then XYOUTS, 23.67, 46.8, 'C', COLOR=253
Well, I think I tried this first but got an error, then I tried this
notation. But hey, new day new luck. Now everything works fine. Seems
yesterday was the day of the typo. Had another one that kept me banging
my head against the wall for hours.
Thx.
Johannes
|
|
|