environment question

MisterX x at monsieurx.com
Fri Aug 1 11:49:00 EDT 2003


super use of try!

Thanks!
Xavier

> -----Original Message-----
> From: metacard-admin at lists.runrev.com
> [mailto:metacard-admin at lists.runrev.com]On Behalf Of Jeanne A. E. DeVoto
> Sent: Friday, 01 August, 2003 16:23
> To: metacard at lists.runrev.com
> Subject: Re: environment question
> 
> 
> 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/
> 
> 
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
> 



More information about the metacard mailing list