>The main difference is that, by default, parameters are passed to procedures by reference but are passed to functions by value.
Isn't this difference due to the way they are called (DO MyFunc / MyFunc()), rather than the definition as FUNCTION MyFunc / PROCEDURE MyFunc ??
Mike
"I can live with doubt and uncertainty and not knowing. I think it is much more interesting to live not knowing than to have answers that might be wrong." - Richard Feynman