Taking a minute to run "VarTypeName(@DOS)" confirms that it does return a string. This is the reason for inconsistent results. In my Universal Login Script, I have a global var that holds the OS Version as a number, available to other functions that might need it.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D