var format;
for(msk = 1; msk < myMask.length;msk++) //format(what format you want, what column you want
{
format = null;
if(myFormat[msk] == "Number")
var format = new AW.Formats.Number;
if(myFormat[msk] == "Date")
var format = new AW.Formats.Date;
if(format != null)
{
if(myMask[msk] == "###,###,##0")
myMask[msk] = "#,###.";
format.setTextFormat(myMask[msk]);
format.setErrorText("");
format.setErrorValue(0);
table.setCellFormat(format, msk);
}
table.setColumnWidth(myLengths[msk], msk);
}
This topic is archived.