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

Home » Public Forums » archive » IDL Version Number Warning
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 version [message #65783 is a reply to message #61653] Thu, 19 March 2009 08:40 Go to previous message
ben.bighair is currently offline  ben.bighair
Messages: 221
Registered: April 2007
Senior Member
On Mar 19, 11:22 am, llo <bernat.puigdomen...@gmail.com> wrote:
> How can I know which version of IDL is running my program ?
>  llo

Hello,

When you start up IDL it will print version info...

[Sei:~] Ben% idl
IDL Version 6.3, Mac OS X (darwin ppc m32). (c) 2006, Research
Systems, Inc.
Installation number: 99906.
Licensed for personal use by Michael Sieracki only.
All other use is strictly prohibited.


To get the version programmatically you can access the "release" tag
of the !version system variable.

IDL> help, !version,/str
** Structure !VERSION, 8 tags, length=76, data length=76:
ARCH STRING 'ppc'
OS STRING 'darwin'
OS_FAMILY STRING 'unix'
OS_NAME STRING 'Mac OS X'
RELEASE STRING '6.3'
BUILD_DATE STRING 'Mar 23 2006'
MEMORY_BITS INT 32
FILE_OFFSET_BITS
INT 64

You'll see programmers doing stuff like...

IDL> if (!version.release LT 7) then print, "old duffer"
old duffer

IDL's string-to-float conversion seems to handle the oddball release
format you might see...

IDL> if ('7.0.4' LT 7.0) then print, "old duffer"



Cheers,
Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL version
Next Topic: COM/ActiveX bridge crashes, methods not exposed

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

Current Time: Fri Oct 10 01:30:52 PDT 2025

Total time taken to generate the page: 0.23541 seconds