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

Home » Public Forums » archive » Re: IDL Workbench Nits
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: IDL Workbench Nits [message #57975 is a reply to message #57972] Thu, 10 January 2008 12:43 Go to previous messageGo to previous message
Abraham campbell is currently offline  Abraham campbell
Messages: 10
Registered: January 2008
Junior Member
David Fanning wrote:
> David Fanning writes:
>
>> Ah, here is this problem in a reproducible form.
>>
>> I read an interesting article on the IDL newsgroup
>> (probably not one of my own). I want to check it out.
>> So I cut a line of code from the newsgroup article,
>> and try to paste it into my Command Window. It goes
>> *directly* into the Console Window, and it gets
>> executed immediately. But, it never shows up in the Command
>> Line window.
>
> Well, maybe this is normal. Not a good example, in
> any case. I'll have to keep looking. Something is
> weird here, but I can't put my finger on it at the
> moment.
>
> Cheers,
>
> David

There is a difference between multi-line paste and single-line paste.
When you paste multiple lines into the command line window, it
immediately executes each line, one at a time, without displaying the
lines in the command line, and without you being able to modify the
command before it's executed. (NOTE: The last line of a multi-line
paste is also executed immediately.) However, with a single-line paste,
the command is left in the command line window, and not immediately
executed, so that you can modify it before executing it.

What you might be running into is the case where you have a single
statement, but you have also copied a newline character at the end of
the statement. When you paste this into the command line, it will
behave like a multi-line paste and immediately execute the (single)
command and not give you a chance to edit the command before execution.

The presence of a carriage return/newline character anywhere in the
pasted text determines the difference between multi-line and single-line
paste behavior.

Abraham
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What do YOU make in salary?
Next Topic: Re: putting data into .kml (google earth) from IDL

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

Current Time: Sun Oct 12 08:35:09 PDT 2025

Total time taken to generate the page: 0.31675 seconds