1. Re: getenv CORRECTION
- Posted by Bernie Ryan <xotron at ?luefrog.com> May 30, 2008
- 613 views
Derek Parnell wrote: > > Bernie Ryan wrote: > > > }}} <eucode> > > if not getenv(name) and platform() = 3 > > then return -1 > > else return getenv(name) end if > > </eucode> {{{ > > Apart from the fact that that code would fail (getenv() returns a sequence or > an atom), the platform() test would be executed every time and getenv() would > be called twice. > > > -- > Derek Parnell > Melbourne, Australia > Skype name: derek.j.parnell
if equal(getenv(name),0) and platform() = 3 then return -1 else return getenv(name) end if
Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan