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

Home » Public Forums » archive » Re: How to tell if I'm running IDL or PV-WAVE
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: How to tell if I'm running IDL or PV-WAVE [message #1781 is a reply to message #1778] Sat, 29 January 1994 14:24 Go to previous message
ft is currently offline  ft
Messages: 4
Registered: May 1993
Junior Member
In article <1994Jan28.034743.14539@bnlux1.bnl.gov> rivers@bnlux1.bnl.gov (mark rivers) writes:
> Is there a way to find out from within a procedure whether one is running
> PV-WAVE or IDL? I need to call LINKNLOAD if I am running PV-WAVE or
> CALL_EXTERNAL if I am running IDL. The !version system variable doesn't
> seem to have this information.

Interesting point. There seems to be no system variable which tells you
"Wave" or "IDL", or even the vendor name ("RSI" or "VNI"). Without doing
some hack like trying to find a system variable which is only found in one
of these packages, I'd use something along the lines of:

wver = call_unix("printenv","WAVE_VERSION")

Then, test wver for a null value (= running IDL) or a string value (= running
Wave). I've never used IDL, so I can't assure you this will work there (it
works in Wave). Nor am I sure what the analog would be in VMS; I assume
"call_unix" is not part of the VMS version - but there must be some
mechanism for performing an OS command.

Regards,

--
Fred True "My name is Ozymandias, King of Kings:
AT&T Global Systems Technology Group Look on my works, ye Mighty,
ft@maxwell.att.com and despair!"
ftrue@attmail.com -P. B. Shelley
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mixing PS fonts in PV-WAVE\
Next Topic: multiple selections from a list

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

Current Time: Fri Oct 10 14:50:13 PDT 2025

Total time taken to generate the page: 0.08223 seconds