:: Forum >>

Format incorrect for number - why?

I have a grid using an XML input (below), and I am trying to do a format on a number using:

var number = new Active.Formats.Number;
number.setTextFormat("#,###");

But the grid then shows data extra 0's. For example, "1" is displayed as "1,000". What am I doing wrong?

<root>
<row TestID="1" TestString="Admin, Admin" TestBit="0" TestNumber="0" TestDate="2005-04-15T15:03:35.213" TestHeaderGraphic="Graphic As Header" />
<row TestID="2" TestString="Admin, Admin" TestBit="1" TestNumber="0" TestDate="2005-04-15T15:03:35" TestHeaderGraphic="Graphic As Header" />
<row TestID="3" TestString="Admin, admin2" TestBit="0" TestNumber="453" TestDate="2005-04-15T15:03:35" TestHeaderGraphic="Graphic As Header" />
<row TestID="4" TestString="Admin, Admin" TestBit="0" TestNumber="3" TestDate="2005-04-13T15:03:35" TestHeaderGraphic="Graphic As Header" />
<row TestID="5" TestString="Admin, Admin" TestBit="1" TestNumber="5635345" TestDate="2005-04-13T15:02:33" TestHeaderGraphic="Graphic As Header" />
<row TestID="6" TestString="Admin, admin2" TestBit="0" TestNumber="3" TestDate="2005-04-15T15:03:35" TestHeaderGraphic="Graphic As Header" />
<row TestID="7" TestString="Admin, Admin" TestBit="0" TestNumber="1" TestDate="2005-04-15T15:03:35" TestHeaderGraphic="Graphic As Header" />
<row TestID="8" TestString="Admin, Admin" TestBit="1" TestNumber="0" TestDate="2005-04-15T15:03:35" TestHeaderGraphic="Graphic As Header" />
<row TestID="9" TestString="Admin, admin2" TestBit="0" TestNumber="0" TestDate="2005-04-15T15:03:35" TestHeaderGraphic="Graphic As Header" />
<row TestID="10" TestString="Admin, Admin" TestBit="0" TestNumber="1" TestDate="2005-04-15T15:03:35" TestHeaderGraphic="Graphic As Header" />
<row TestID="11" TestString="Admin, Admin" TestBit="1" TestNumber="0" TestDate="2005-04-15T15:03:35" TestHeaderGraphic="Graphic As Header" />
<row TestID="12" TestString="Admin, admin2" TestBit="0" TestNumber="0" TestDate="2005-04-15T15:03:35" TestHeaderGraphic="Graphic As Header" />
</root>

Mark
Friday, June 3, 2005

This topic is archived.


Back to support forum

Forum search