You can force a numeric compare with $Ver = Val(@DOS), or $Ver = 1.0 * @DOS.

In the second form, Kix sees a decimal number and converts the entire process to that format based on the first item referenced. Multiplying by 1.0 doesn't change the value but forces Kix to use precision math.

@DOS might return a version string, which will throw things off.

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