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

Home » Public Forums » archive » Re: XYOUTS: Variable is undefined: Conversion destination variable.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: XYOUTS: Variable is undefined: Conversion destination variable. [message #69521] Mon, 25 January 2010 08:51 Go to next message
David Fanning is currently offline  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 Go to previous messageGo to next message
penteado is currently offline  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 Go to previous message
Johannes Korn is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Mode and variation of cells in multiple grids (3-D problem)
Next Topic: XYOUTS: Variable is undefined: Conversion destination variable.

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

Current Time: Thu Oct 09 22:56:55 PDT 2025

Total time taken to generate the page: 0.16352 seconds