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 #87210 is a reply to message #87208] Thu, 16 January 2014 05:58 Go to previous messageGo to previous message
zbjiang803109 is currently offline  zbjiang803109
Messages: 5
Registered: January 2014
Junior Member
>
> 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?
>
>
>

Thank a lot, Heinz. Adding compile_opt idl2 works. But I wonder why sometimes the compilation passes even without the option. And later when I remove the line (compile_opt idl2) the compilation also passes.

David: I tried open the file with Uedit and emacs, and didn't find any fancy characters.

Cheers, Zhibo


> 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: Thu Oct 09 23:58:59 PDT 2025

Total time taken to generate the page: 0.87261 seconds