What I’m doing is quite hard to explain, so I’m just going to tell you. I’ve set the X position of an Object to a variable, and modified some text to display the variables value onto the text. but it has a whole bunch of numbers displaying and I was wondering how I can simplify it to just show the X position with out a decimal?
I’ve done this once before but that was a while ago and since have forgotten.
Use trunc or round :
ToString(trunc(Object.Variable(xPosition)))
Or ToString(round(Object.Variable(xPosition)))
So for me would it ToString(trunc(hiddenscroll.Variable(Scroll)))?
Yes, if Scroll is the variable on object hiddenscroll.
Better still, try it out
It worked, thanks a lot