Hi guys,
I am stumped by how to input and display numeric values in a grid's textboxes, where the number of decimal places for the user differs from that of the underlying table.
E.g-- All the fields in the underlying table are (always) N (10,4). But we need the user to be able to select and change between 0, 2 and 4 decimals, for both input and display.
If I make the InputMask = "99999.99", the two decimal places are maintained as long as the cursor remains in the textbox; but as soon as the cursor exits the field, it reverts to the table decimal places of 4.
Also I've tried SET DECIMALS TO [N], and this has no effect.
Any thoughts?
TIA
I am stumped by how to input and display numeric values in a grid's textboxes, where the number of decimal places for the user differs from that of the underlying table.
E.g-- All the fields in the underlying table are (always) N (10,4). But we need the user to be able to select and change between 0, 2 and 4 decimals, for both input and display.
If I make the InputMask = "99999.99", the two decimal places are maintained as long as the cursor remains in the textbox; but as soon as the cursor exits the field, it reverts to the table decimal places of 4.
Also I've tried SET DECIMALS TO [N], and this has no effect.
Any thoughts?
TIA