I’m trying to compare Office version numbers in vb.NET
How can I determine if: 12.0.64 is greater or less than say 12.0.62 or 14.0.4762
It seems the fact that there is 2 decimals, vb doesn’t like it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the
Versionclass, which is specifically designed to handle version numbers like the ones you’re trying to compare.It provides a
CompareTomethod that accepts anotherVersionobject to compare against, and returns a value indicating their relative values.