$KiXMin='4.21'
$KiXFound=@kix
if $KiXFound<$KiXMin

will not work.
you forgot that 4.22 has different string.

anyways:

$KixVersion = @KIX
$KiXMin = '4.21'
select
case instr($KixVersion,'4.21') $KiXFound='4.21'
case instr($KixVersion,'4.22') $KiXFound='4.22'
case 1 $KiXFound=0
endselect
if $KiXFound < '4.21'


is overshooting. and does only work for 4.21 as it's hard-coded and... and...

something like:

$KiXMin = '4.21'
$KixVersion = @KIX

$KiXFound=split($KixVersion,'.')
$KixFound=substr($KixFound[0],instrrev($KixFound[0], )+1)+'.'+$KixFound[1]

if $KiXFound < $KixMin


or?

[ 27. October 2003, 19:37: Message edited by: Lonkero ]
_________________________
!

download KiXnet