Sorry for not being clear. The Text wasn't showing on the screen when I wrote the event like that. When I turn off set Variable to Distance the Text appears back on.
It works!!!! Thank you very much.
EDIT: Actually, the event I wrote original works too. The reason why it wasn't showing on the screen was because I have:
On start of layout:
Text set font size to 36 pt.
For some reason when I have that on, the Text don't show up on screen, unless I turn off set Variable to Distance.