Results 1 to 4 of 4

Thread: [RESOLVED] Comparing versions = Headache

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Arve K.'s Avatar
    Join Date
    Sep 2008
    Location
    Kyrksæterøra, Norway
    Posts
    518

    Resolved [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.
    Arve K.

    Please mark your thread as resolved and add reputation to those who helped you solve your problem
    Disclaimer: I am not a professional programmer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width