Distance between two object and show that in text?

Try testing Golf game and need to know how show distance between ball and hole in text. Realtime when ball is moving. Maybe example please. Sry English and thanks.

You have to use the action to change the Text object string, with this expression as new string:


This way:

That was easy. Thanks!