Hello,
I need to display ulong values in a table. How (format string) format column ( columnFormat() ) to display such values?
Default or decimal (eg. 12d) format displays wrong values.
When I use "[12u,False,False,ALIGNMENT_END,False]" table didnt accept this format string without any message.
Regards
Adam
Cell format
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Cell format
I have tested it and I get no error when setting the format for a table column.
Which log message do you get when the format is set?
Best Regards
Leopold Knipp
Senior Support Specialist
Which log message do you get when the format is set?
Best Regards
Leopold Knipp
Senior Support Specialist
- ask
- Posts:28
- Joined: Tue Nov 29, 2016 11:37 am
Re: Cell format
Code:
for(int i=1;i<=12;i++)
{
this.insertColumn(i);
setValue("","columnName",i,"kol"+i,
"columnFormat","this.columnName(i),"[12u,False,False,ALIGNMENT_END,False]",
"columnAlignment",i,"AlignVCenter | AlignHCenter");
}
After that there is no message, but values are displayed wrong way.
After adding inside the loop line:
DebugN("col nr="+i,"format="+this.columnFormat(this.columnName(i));
in log there are messages like:
["col nr=1"],["format=[0s,,,ALIGNMENT_END]"]
["col nr=2"],["format=[0s,,,ALIGNMENT_END]"] etc.
Regards
Adam
for(int i=1;i<=12;i++)
{
this.insertColumn(i);
setValue("","columnName",i,"kol"+i,
"columnFormat","this.columnName(i),"[12u,False,False,ALIGNMENT_END,False]",
"columnAlignment",i,"AlignVCenter | AlignHCenter");
}
After that there is no message, but values are displayed wrong way.
After adding inside the loop line:
DebugN("col nr="+i,"format="+this.columnFormat(this.columnName(i));
in log there are messages like:
["col nr=1"],["format=[0s,,,ALIGNMENT_END]"]
["col nr=2"],["format=[0s,,,ALIGNMENT_END]"] etc.
Regards
Adam