|
| Iniciado por guest, 29,feb. 2016 12:56 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 29,febrero 2016 - 12:56 |
Hi, I can;t get this to work although is should be very easy I guess. I want to print decimals as-is, without extra zeros 1,23 -> 1,23 1,20 -> 1,2 1,00 -> 1
I tried different displaymasks without any luck. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 29,febrero 2016 - 14:00 |
Well, I got it working by changing the report-control to "text" and use NumToString(value) in code. I still wonder if there is a simple mask-setting for a numeric-reportcontrol |
| |
| |
| | | |
|
| | |
| |
| Publicado el 01,marzo 2016 - 15:19 |
Hi, Arie, Your question got me thinking and experimenting and I think this addresses your problem - with one exception.
I defined a numeric edit control with the input mask of "9,999.9000" Then I created a button with the following code Edit1=987.12 Info(" ") Edit1=6.1234 Info(" ") Edit1=345.7
Each time the edit control showed the value exactly as it appears in the code. It seems that zeros to the right of the decimal point don't appear unless matched to a digit.
The exception is that there should be at least one digit to the right of the decimal point
I tried placing all zeros to the right of the decimal point in the mask and it did not work.
- Mike H. |
| |
| |
| | | |
|
| | | | |
| | |
|