environment question

Jeanne A. E. DeVoto jeanne at runrev.com
Fri Aug 1 10:30:00 EDT 2003


At 2:13 AM -0700 8/1/03, MisterX wrote:
>In view of the future, and with regards to what is running,
>how can you know if it is MetaCard or RR running your stack?

Try this:

function isRunningRev
  try
    get revAppVersion() -- Rev library function
    return true -- if the above produced no execution error,
    -- the function is present so we're running Rev
  catch theError
    return false -- Rev libraries not available - so running MC
  end try
end isRunningRev

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - Software at the Speed of Thought
http://www.runrev.com/





More information about the metacard mailing list