And the KiXtart Manual does explain a) scope issues with DIM/GLOBAL and b) how to return values out of an FUNCTION-ENDFUNCTION construct.
_________________________
There are two types of vessels, submarines and targets.