[WD20] What's up with Input Masks? [SOLVED]

Startbeitrag von Curtis am 07.06.2016 21: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.


Re: [WD20] What's up with Input Masks?

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,


von Joris - am 08.06.2016 08:00

Re: [WD20] What's up with Input Masks?


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

von Fabrice Harari - am 08.06.2016 11:48

Re: [WD20] What's up with Input Masks?

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.

EDIT: Thanks Fabrice!

von Curtis - am 08.06.2016 13:48
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.