|
| [WD20] What's up with Input Masks? |
| Iniciado por guest, 07,jun. 2016 23:52 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 07,junio 2016 - 23:52 |
They never seem to work how they should.
I have a small window I use as a popup for quick input. It has one edit field that starts off with an input mask as text. In one instance I pass the constant maskSystemCurrency to the window and set the ..InputMask of the edit field to maskSystemCurrency. If I enter "99" it displays as "MoneySystemM9sk$". What!? The only other code that runs on this window sets the window title and validates that input was entered.
EDT_Input..InputMask = maskSystemCurrency // Displays "MoneySystemM9sk$" EDT_Input..InputMask = "99999.99" // Can't enter decimal. Comma displays after entering fifth digit. EDT_Input..InputMask = "99999,99" // Can't enter decimal. Decimal displays after entering fifth digit. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,junio 2016 - 10:00 |
Hi Curtis,
I'm strugling with them for a few years already. I'm not using the ..InputMask syntax but simply the control settings. I have reported this already to PCS but without result. What languages are you using in your project? I'm using Dutch, French, English and German. My computer has a Dutch Windows version.
Kind regards,
Joris. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,junio 2016 - 13:48 |
Hi
masksystemcurrency is a NUMERICAL mask, it should be used on NUMERIC fields only.
When you setup a field, if your choose a TEXT field, this mask is NOT available in the mask combo.
Only the masks that ARE available in that combo are compatible with your field.
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,junio 2016 - 15:48 |
Well that's silly. Joris, I am using English only.
It seems the solution is to first use the ..InputType property. It is working for me. http://doc.windev.com/en-US/… |
| |
| |
| | | |
|
| | | | |
| | |
|