|
-
Jul 25th, 2010, 07:38 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Comparing versions = Headache
Hi guys,
In my application I need to compare two versions against each other, but I'm not quite sure how to go on with this. The structure of the versions is like this; Major, Minor, Build, Revison (ex: 1.0.0.0).
Example:
So if I compare 1.0.0.10 with 1.3.0.3, I'm thinking that I need to split each version into 4 integers and then compare them with the 4 integers in the other version, but that would require a lot of If's and Then's, wouldn't it?? There is probably a neat way of doing this, but I can't come up with nothing at the moment...
Any ideas??
Arve
Last edited by Arve K.; Jul 25th, 2010 at 07:49 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|