>if alen(this.aParameters) > 1 > if upper(this.aParameters[2]) = "NUMBER" > toObjProperties.text = transform(toObjProperties.value) > toObjProperties.Reload = .t. > endif >endif>This works fine if the number is an integer. However if its a decimal I get a string of unwanted zeros on the end. I'm not sure why, but I am trying to limit the decimals to only those that are supposed to be there. Any thoughts?
toObjProperties.text = ALLTRIM(PADL(toObjProperties.value,16))Sometimes PADL returns a more acurate representation of the underlying numeric value. TRANSFORM can be affected by outside influences, like SET DECIMALS. But if you know the number of decimals you want, set the picture/format value in the report and your problem may go away without custom code in the ReportListener.