Discussion:
TextField Mask
Albert Wallace
2017-01-23 03:27:12 UTC
Permalink
Im trying to limit the input into a textfield to numbers and (if needed) a decimal point. The mask using “#.#” is too literal, as there may be more digits before or after the decimal point, or no decimal point, at all.

Any ideas are much appreciated.

Thanks.
_______________________________________________

Xojo forum:

https://forum.x
Jon Ogden
2017-01-23 04:09:00 UTC
Permalink
I have a sub-class of text field I developed called NumericTextField. Only allows numeric input and also provides a number changed event.

Contact me directly and I'll send it to you.

Jon

Sent from my iPhone
Post by Albert Wallace
Im trying to limit the input into a textfield to numbers and (if needed) a decimal point. The mask using “#.#” is too literal, as there may be more digits before or after the decimal point, or no decimal point, at all.
Any ideas are much appreciated.
Thanks.
_______________________________________________
https://forum.xojo.com/
_______________________________________________

Xojo forum:

https://

Continue reading on narkive:
Loading...