Compare versions with CompareVersions Method

 

Need to check whether the version of an installed plug-in is at least a certain version or higher? Comparing version numbers which contain periods or commas can get messy, especially since string comparisons often do not produce the right results when they represent numbers. For example a string comparison of "1.10" vs. "1.9" will result in "1.10" being deemed smaller.

 

Use the CompareVersions Method to have BrowserHawk accurately compare version numbers for you. It even automatically handles cases where version numbers contain periods, commas, and other formats (for example "7.0 r14" as is used with the Flash player on browsers other than IE Windows).

 

See Also:

CompareVersions Method

CompareVersions Method (.NET)