kolyur
Lifetime Supporting Member + Moderator
I am displaying inch position values in numerous places on a Kadet G307K2. The display format is three decimal places, i.e. 00.000. I need to modify the setup so the user can display all values in metric (centimeters) by changing a setup parameter. For a variety of reasons, the centimeter display format must be two decimal places (00.00 or 000.00).
I am struggling to come up with a way to do this, or even a decent workaround. As far as I can tell, the decimal places setting in the number format is not adjustable programmatically. I know I could use a string display with a DecToText statement, but this would only work for display-only fields. Many of the fields are data entry, and the values need to be entered in the same format as they are displayed. I could stack two primitives on top of each other, with only one visible at a time, but this seems like a less-than-elegant solution.
Any other suggestions?
I am struggling to come up with a way to do this, or even a decent workaround. As far as I can tell, the decimal places setting in the number format is not adjustable programmatically. I know I could use a string display with a DecToText statement, but this would only work for display-only fields. Many of the fields are data entry, and the values need to be entered in the same format as they are displayed. I could stack two primitives on top of each other, with only one visible at a time, but this seems like a less-than-elegant solution.
Any other suggestions?