There is also classic Dist (linear distance) function: http://www.thinbasic.com/public/prod....html?dist.htm