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 #66830 is a reply to message #66828] Fri, 12 June 2009 15:01 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
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
[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: Sat Oct 11 22:32:49 PDT 2025

Total time taken to generate the page: 1.44488 seconds