1
Support Questions / Re: Maximum number of displayed items from EthernetIPforCLXcom
« on: September 03, 2019, 08:17:57 PM »
Thanks Archie,
I tried putting a BasicLabel on the form with AutoSize set to True.
With format set to #,# and a data value of 0 (zero), nothing is displayed. No background is shown.
When I added a Fixed3D border I got a vertical bar that looked two pixels wide, grey on one side, white on the other.
ie the outside pixels of the border show, but the bit in the middle has a zero pixel width.
Once I changed the format to #,#0 everything looks correct - background, border, autosize etc.
Looking further at the format strings link that you sent under the "#" Custom Specifier heading it says :-
"Note that this specifier never displays a zero that is not a significant digit, even if zero is the only digit in the string. It will display zero only if it is a significant digit in the number that is being displayed."
Therefore we need to use the "#,#" format combined with the "0" format to correctly show comma separated thousands and 0 when the data has a zero value.
Should this thread be renamed to correctly reflect the issue and solution so that future searchers may find it.
I tried putting a BasicLabel on the form with AutoSize set to True.
With format set to #,# and a data value of 0 (zero), nothing is displayed. No background is shown.
When I added a Fixed3D border I got a vertical bar that looked two pixels wide, grey on one side, white on the other.
ie the outside pixels of the border show, but the bit in the middle has a zero pixel width.
Once I changed the format to #,#0 everything looks correct - background, border, autosize etc.
Looking further at the format strings link that you sent under the "#" Custom Specifier heading it says :-
"Note that this specifier never displays a zero that is not a significant digit, even if zero is the only digit in the string. It will display zero only if it is a significant digit in the number that is being displayed."
Therefore we need to use the "#,#" format combined with the "0" format to correctly show comma separated thousands and 0 when the data has a zero value.
Should this thread be renamed to correctly reflect the issue and solution so that future searchers may find it.