Using Val() in the comparisons in CompareVerString will break the logic, as this is designed to perform string comparisons. This allows the use of alpha modifiers in the version string, such as "2.3b".

The UDF has been updated with the copy of v1.1 from our web site. Always look at the Kix UDF Library on our web site for the latest versions of UDFs that we write. Our live development library is postprepped and updated every night at 22:00 EST.

The header clearly states that the version string is "." delimited - if you need to alter that, you should change the strings before calling the UDF.

Glenn

PS - The current UDF used the following examples for validation
 Code:
break on
'7:10 '
compareverstring("10.1.183.7","10.1.183.10")
?
'10:7 '
compareverstring("10.1.183.10","10.1.183.7")
?


'10:10 '
compareverstring("10.1.183.10","10.1.183.10")
?


'10a:10a '
compareverstring("10.1.183.10a","10.1.183.10a")
?

'10a:10 '
compareverstring("10.1.183.10a","10.1.183.10")
?
'10:10a '
compareverstring("10.1.183.10","10.1.183.10a")
?

'10a:10b '
compareverstring("10.1.183.10a","10.1.183.10b")
?
'10b:10a '
compareverstring("10.1.183.10b","10.1.183.10a")
?
_________________________
Actually I am a Rocket Scientist! \:D