Hi all This is the way I did it:
First, I've setup an asynchronous httpclient. PUBLIC SUB _getVer_Finished() DIM myVersion, verUpdate AS Integer DIM sMyVer AS String = "1" & Replace(Application.Version, ".", "") ver = "1" & Replace(ver, ".", "") myVersion = CInt(sMyVer) IF ver THEN verUpdate = CInt(ver) IF verUpdate > myVersion THEN IF Message.Question(("There is a new version of yourProgram.\nDo you want to visit the download page?"), ("Yes"), "No") = 2 THEN RETURN Desktop.Open("http://yourProjectWebPage.com") ENDIF END Regards Jesús M0E.lnx escribió: > I need a way to logically analize version numbers in gambas. > > For instance, I have a list of available versions of the same program, let's > say the list is > > 1.2 > 1.4 > 1.6 > 1.10 > 1.16 > 1.20 > 1.35 > 1.5 > 1.3 > 1.1 > > These are of course in no particular order. A human knows that out of all of > these, version 1.35 would be the greater value. > > How can I make gambas analyze this? > > ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user