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

Home » Public Forums » archive » God save me!
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: God save me! [message #87208 is a reply to message #87205] Wed, 15 January 2014 19:22 Go to previous messageGo to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Wed, 15 Jan 2014 17:21:04 -0800 (PST), zbjiang803109@gmail.com
wrote:

> I am using IDL 8.2. I wrote the codes below:
>
> if keyword_set(colorbar) then cb = COLORBAR(TARGET = img, ORIENTATION=1, $
> POSITION=[0.925,0.25,0.945,0.75], $
> border=1,textpos=1)
>
> The system says "Syntax Error" when it is compiled. Even if I retype above lines it doesn't work. But a while later when I add and delete some lines, without changing any part of the codes, this message is gone. This kind of things happen again and again when I restart the IDLDE.
>
> What happened!
>
Do you specify the compile option "compile_opt strictarr" or
"compile_opt idl2" to use square brackets for array indexing?

If not IDL will be irritated by using "COLORBAR(...)" for a function
and "colorbar" for a variable (your keyword). Rename your keyword
"colorbar" to "colorbar_keyword" or something else.

Cheers, Heinz
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Unable to create X windows Window is iconified and has no backing store...
Next Topic: Object Field Name Conflicts

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

Current Time: Wed Oct 08 17:30:40 PDT 2025

Total time taken to generate the page: 0.00415 seconds