I’m exploring the most reliable way to handle currency input in a TextField.
I’ve built a custom solution that filters keystrokes and formats the number as you type. However, I’m not convinced by using Format or Validation Mask — they feel too rigid and inflexible for this use case.
What do you think is the best approach?
Let’s discuss and maybe find a better way together.
The goal is not to pay. From this perspective you can pay for everything, and even someone to do the program. The goal here is to offer an open source solution that everyone can apply and benefit from.
I understand.
I tried all kinds of ways to do it with a textfield but spent way too much time on it. My time is money so I went with GraffitiSuite.
Maybe someone else has a solution.
Thanks
Ok, but have you downloaded my code and what do you think of it ? We must not despair though! The goal is to improve the code. Let’s stay optimistic! Let’s find an open source solution together
The following point may still be revised: Saving the decimal separator in a constant makes the whole very inflexible when it comes to different language regions. The comma as a decimal separator is more common in Europe, the point is more used elsewhere…