if you use the upmost udf, please could you change the end:
code:
for $counter= 8 to ubound($vals) step 4
$nul=execute("$$memory=0.0 + $$memory + &"+$vals[$counter]+"/1024")
next
$memory=int(($memory +648)/1024)
endfunction

to:
for $counter= 8 to ubound($vals) step 4
$memory=0.0
$nul=execute("$$temp=&"+$vals[$counter]+"/1024")
$memory=$memory+$temp
$temp " - " $memory
?
next
$memory=($memory +648)/1024 ?
$memory ?
$memory=int($memory)
$memory ?
endfunction


and post the result?
_________________________
!

download KiXnet