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

Home » Public Forums » archive » 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
Checking version number [message #66833] Fri, 12 June 2009 14:28
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
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

IDL> help, !version.release
<Expression> STRING = '6.4.1'

Is there an easy way to test whether the version is greater than or equal to 7.1?

Ken Bowman
[Message index]
 
Read Message
Previous Topic: Friday Afternoon Puzzler
Next Topic: Re: Friday Afternoon Puzzler

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

Current Time: Wed Oct 08 19:01:47 PDT 2025

Total time taken to generate the page: 0.00446 seconds