[Solved] syntax in expressions

I’m trying to do a simple newbie thing: set a text field to display an object variable. I’ve looked at this for an hour and can’t make it work. Instead of displaying “500”, the text field always displays “ballPosXStop = 0”.

ball has an object Variable called ballPosXStop

What obvious mistake am I making? Also, where in the documentation are all the specific syntax examples?

Thanks!

My syntax was messed up. I found the reference page I was looking for and corrected it to:

"ballPosXStop = " + ToString(ball.Variable(ballPosXStop))

A good morning’s work…sigh.

2 Likes