Limiting the entry type in txt Field

Hello all,

Is there any way to enable the user to ONLY TYPE NUMBERS in a text field, or to make sure they dont type letters in ASS?

If so, how?

Thanks in advance!


use the text did change event handler to filter the characters.
In the handler you could coerce the result to integer and cancel the most recent character if the coercion fails