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

Home » Public Forums » archive » Re: Checking version number
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: Checking version number [message #66825 is a reply to message #66824] Fri, 12 June 2009 15:47 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
wlandsman wrote:
> On Jun 12, 5:28 pm, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
>> I don't like to write version-dependent code, but with the improved PS
>> driver in IDL 7.1 I would like to keep my old workarounds for 24-bit
>> color available.
>>
>> The quantity stored in !VERSION is a string
>>
>> IDL> help, !version.release
>> <Expression> STRING = '7.1'
>>
>> But this is not simple to convert to a number, because there are
>> instances like this
>>
>
> I have always found that just using a string comparison works fine
> (no need to convert to a number), even with subversions e.g.
>
> if !VERSION.RELEASE GE '7.1' THEN ...
>
> Of course this might begin to fail with Version 10... --Wayne

Or any minor version i.e. if we had made it to 6.10. Modern IDLs should
be OK, but how many minor versions were there in IDL 1, 2, 3, and 4?

IDL> print, '6.10' gt '6.2'
0

Mike
--
www.michaelgalloy.com
Associate Research Scientist
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 4 byte integers
Next Topic: Re: Confusions with map_image!

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

Current Time: Fri Oct 10 03:11:44 PDT 2025

Total time taken to generate the page: 0.00569 seconds