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

Home » Public Forums » archive » Hey! Pssst! Wanna see something wierd?
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: Hey! Pssst! Wanna see something wierd? [message #8089 is a reply to message #8012] Mon, 03 February 1997 00:00 Go to previous messageGo to previous message
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
David Fanning wrote:
>
> Alright you IDL gurus. Explain this!
>
> number = STRING(10)
> FOR j=0, number DO PRINT, 'Cool...!'
>
> Weird, huh. IDL reads my mind! :-)
>


Seems easy to explain, the string value is simply converted
to integer type because 0 is of that type, to prove this, try
these three options...


FOR j=0, number DO Help, j

FOR j=0L, number DO Help, j

FOR j=0., number DO Help, j


--
Andrew F. Loughe |
afl@cdc.noaa.gov
University of Colorado, CIRES Box 449 |
http://cdc.noaa.gov/~afl
Boulder, CO 80309-0449 | phn:(303)492-0707
fax:(303)497-7013
------------------------------------------------------------ ---------------
"I do not feel obliged to believe that the same God who has endowed us
with
sense, reason, and intellect has intended us to forego their use."
-Galileo
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: KILL_NOTIFY Programs
Next Topic: writing color images - revisited

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

Current Time: Fri Oct 10 15:26:42 PDT 2025

Total time taken to generate the page: 0.72127 seconds