Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lanl!opus!ksitze From: ksitze@nmsu.edu (Kevin Sitze) Newsgroups: comp.sys.mac.programmer Subject: Re: SysEnvirons and systemVersion Message-ID: Date: 12 May 89 19:03:06 GMT References: <5692@microsoft.UUCP> Sender: news@nmsu.edu Organization: NMSU Computer Science Lines: 34 In article: Stuart writes: >I have a quick question to do with the SysEnvirons function and how to >interpret the system version from it. > >I can get all the information from SysEnvirons I need, except an explicit >system version number. What I get returned is an integer. What I need to >know, is how do I relate this to a particular version of the system. > >For example, systemVersion returns 1538 when run on a release 6.0.2. Do I >then have to manually say, well since it's 1538 it must be 6.0.2? If so >where is there a list of previous "system numbers". > >Basically, am I missing something here..? Is there a better way to >determine what system is running, than SysEnvirons? Your missing something. SysEnvirons (as IM-V says) returns the system number. The system number though is encoded in BCD format (as IM-V says) so system 6.0.2 is returned as 1538 or $0602 (hex number 0602). -Kelesi -- ------------------------------------+------------------------------- From the Macintosh of: Kevin Sitze | Disclamer: Who the heck needs | a disclamer? After all, Dan EMail: ksitze%NMSU.edu | Quayle doesn't. SMail: 601 S. Melendres +------------------------------- Las Cruces, NM 88005 | "We have the answers, the ------------------------------------+ trouble lies in finding the "The difference between intelligence| questions..." and stupidity is that intelligence | "The information is there, has a limit." - anonymous | finding it is another story." The dolt confuses you -- more -- | - Any consultant ------------------------------------+-------------------------------