[Gambas-user] analyzing version numbers in gambas

Ron ron at ...1740...
Wed Mar 25 16:29:29 CET 2009


Laurent Carlier schreef:
> Le mercredi 25 mars 2009 16:07:11 M0E.lnx, vous avez écrit :
>> 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?
> 
> I guess, in these cases, you can use the Val() function.
> 
> http://64.128.110.55/help/lang/val
> 
> Regards,
> 

Do a replace to remove the . then 12 is less(older) then 135.

Regards,
Ron_2nd.




More information about the User mailing list