Hi Malcolm,
You could use something like this:
dim content as string
dim value as double
dim txtObj as xpTextObject
Self.getObjectByName("Text1", txtObj)
value = Convert.ToDouble(txtObj.Text)
content = string.Format("{0:0.0}", value)
Self.getObjectByName("Text2", txtObj)
txtObj.Text = content
' {0:0.0} = 1.1
' {0:0.00} = 1.12
' {0:0.000} = 1.123
In this case I'm using Text1 as a dummy-value or hidden field to put the actual value in, which will be converted into your chosen format and placed in Text2
Hope it helps.
#XPression