Cell format

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
ask
Posts:28
Joined: Tue Nov 29, 2016 11:37 am

Cell format

Post by ask »

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

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Cell format

Post by leoknipp »

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

ask
Posts:28
Joined: Tue Nov 29, 2016 11:37 am

Re: Cell format

Post by ask »

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

3 posts • Page 1 of 1